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

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


Changes in directory llvm/tools/gccas:

gccas.cpp updated: 1.61 -> 1.62

---
Log message:

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


---
Diffs of the changes:

Index: llvm/tools/gccas/gccas.cpp
diff -u llvm/tools/gccas/gccas.cpp:1.61 llvm/tools/gccas/gccas.cpp:1.62
--- llvm/tools/gccas/gccas.cpp:1.61	Thu Apr 24 13:36:37 2003
+++ llvm/tools/gccas/gccas.cpp	Thu Apr 24 14:10:07 2003
@@ -66,8 +66,8 @@
   addPass(PM, createGlobalDCEPass());            // Kill unused uinit g-vars
   addPass(PM, createDeadTypeEliminationPass());  // Eliminate dead types
   addPass(PM, createConstantMergePass());        // Merge dup global constants
-  addPass(PM, createVerifierPass());             // Verify that input is correct
   addPass(PM, createCFGSimplificationPass());    // Merge & remove BBs
+  addPass(PM, createVerifierPass());             // Verify that input is correct
   addPass(PM, createDeadInstEliminationPass());  // Remove Dead code/vars
   addPass(PM, createRaiseAllocationsPass());     // call %malloc -> malloc inst
   addPass(PM, createIndVarSimplifyPass());       // Simplify indvars
@@ -144,6 +144,9 @@
   // a little bit.  Do this now.
   //
   PassManager Passes;
+
+  // Add an appropriate TargetData instance for this module...
+  Passes.add(new TargetData("gccas", M.get()));
 
   // Add all of the transformation passes to the pass manager to do the cleanup
   // and optimization of the GCC output.





More information about the llvm-commits mailing list