Changes in directory llvm/tools/opt:
opt.cpp updated: 1.122 -> 1.123 --- Log message: target constructors are never used --- Diffs of the changes: (+1 -4) opt.cpp | 5 +---- 1 files changed, 1 insertion(+), 4 deletions(-) Index: llvm/tools/opt/opt.cpp diff -u llvm/tools/opt/opt.cpp:1.122 llvm/tools/opt/opt.cpp:1.123 --- llvm/tools/opt/opt.cpp:1.122 Thu Nov 30 18:43:14 2006 +++ llvm/tools/opt/opt.cpp Fri Dec 1 15:59:37 2006 @@ -224,10 +224,7 @@ Pass *P = 0; if (PassInf->getNormalCtor()) P = PassInf->getNormalCtor()(); - else if (PassInf->getTargetCtor()) { - assert(target.get() && "Could not allocate target machine!"); - P = PassInf->getTargetCtor()(*target.get()); - } else + else llvm_cerr << argv[0] << ": cannot create pass: " << PassInf->getPassName() << "\n"; if (P) { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits