[llvm-commits] CVS: llvm/tools/llvm-ld/Optimize.cpp
Reid Spencer
reid at x10sys.com
Sun Aug 20 13:54:52 PDT 2006
Changes in directory llvm/tools/llvm-ld:
Optimize.cpp updated: 1.11 -> 1.12
---
Log message:
Make sure the verify pass gets run after the user's loaded passes as well
when the verify-each option is given.
---
Diffs of the changes: (+2 -3)
Optimize.cpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
Index: llvm/tools/llvm-ld/Optimize.cpp
diff -u llvm/tools/llvm-ld/Optimize.cpp:1.11 llvm/tools/llvm-ld/Optimize.cpp:1.12
--- llvm/tools/llvm-ld/Optimize.cpp:1.11 Sun Aug 20 15:48:44 2006
+++ llvm/tools/llvm-ld/Optimize.cpp Sun Aug 20 15:54:38 2006
@@ -175,12 +175,11 @@
std::auto_ptr<TargetMachine> target;
for (unsigned i = 0; i < OptimizationList.size(); ++i) {
const PassInfo *Opt = OptimizationList[i];
-
if (Opt->getNormalCtor())
- Passes.add(Opt->getNormalCtor()());
+ addPass(Passes, Opt->getNormalCtor()());
else if (Opt->getTargetCtor()) {
assert(target.get() && "Could not allocate target machine!");
- Passes.add(Opt->getTargetCtor()(*target.get()));
+ addPass(Passes, Opt->getTargetCtor()(*target.get()));
} else
std::cerr << "llvm-ld: cannot create pass: " << Opt->getPassName()
<< "\n";
More information about the llvm-commits
mailing list