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

Chris Lattner lattner at cs.uiuc.edu
Thu Apr 24 14:11:18 PDT 2003


Changes in directory llvm/tools/opt:

opt.cpp updated: 1.80 -> 1.81

---
Log message:

Make sure to create a target data that matches the Module's target properties.



---
Diffs of the changes:

Index: llvm/tools/opt/opt.cpp
diff -u llvm/tools/opt/opt.cpp:1.80 llvm/tools/opt/opt.cpp:1.81
--- llvm/tools/opt/opt.cpp:1.80	Thu Apr 24 13:36:41 2003
+++ llvm/tools/opt/opt.cpp	Thu Apr 24 14:10:09 2003
@@ -113,6 +113,9 @@
   //
   PassManager Passes;
 
+  // Add an appropriate TargetData instance for this module...
+  Passes.add(new TargetData("opt", M.get()));
+
   // Create a new optimization pass for each one specified on the command line
   for (unsigned i = 0; i < OptimizationList.size(); ++i) {
     const PassInfo *Opt = OptimizationList[i];





More information about the llvm-commits mailing list