[llvm-commits] CVS: llvm/tools/opt/opt.cpp

Chris Lattner sabre at nondot.org
Fri Dec 1 13:59:55 PST 2006



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) {






More information about the llvm-commits mailing list