[llvm-commits] CVS: llvm/tools/bugpoint/OptimizerDriver.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Apr 24 14:11:11 PDT 2003
Changes in directory llvm/tools/bugpoint:
OptimizerDriver.cpp updated: 1.5 -> 1.6
---
Log message:
Make sure to create a target data that matches the Module's target properties.
---
Diffs of the changes:
Index: llvm/tools/bugpoint/OptimizerDriver.cpp
diff -u llvm/tools/bugpoint/OptimizerDriver.cpp:1.5 llvm/tools/bugpoint/OptimizerDriver.cpp:1.6
--- llvm/tools/bugpoint/OptimizerDriver.cpp:1.5 Thu Apr 24 13:36:36 2003
+++ llvm/tools/bugpoint/OptimizerDriver.cpp Thu Apr 24 14:10:06 2003
@@ -74,6 +74,9 @@
}
PassManager PM;
+ // Make sure that the appropriate target data is always used...
+ PM.add(new TargetData("bugpoint", Program));
+
for (unsigned i = 0, e = Passes.size(); i != e; ++i) {
if (Passes[i]->getNormalCtor())
PM.add(Passes[i]->getNormalCtor()());
More information about the llvm-commits
mailing list