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

Chris Lattner lattner at cs.uiuc.edu
Thu Apr 24 13:27:01 PDT 2003


Changes in directory llvm/tools/gccas:

gccas.cpp updated: 1.59 -> 1.60

---
Log message:

LevelRaise now gets target data from passmanager


---
Diffs of the changes:

Index: llvm/tools/gccas/gccas.cpp
diff -u llvm/tools/gccas/gccas.cpp:1.59 llvm/tools/gccas/gccas.cpp:1.60
--- llvm/tools/gccas/gccas.cpp:1.59	Wed Apr 23 15:40:42 2003
+++ llvm/tools/gccas/gccas.cpp	Thu Apr 24 13:26:03 2003
@@ -23,9 +23,6 @@
 #include <fstream>
 
 namespace {
-  // FIXME: This should eventually be parameterized...
-  TargetData TD("gccas target");
-
   cl::opt<std::string>
   InputFilename(cl::Positional,cl::desc("<input llvm assembly>"),cl::init("-"));
 
@@ -74,7 +71,7 @@
   addPass(PM, createDeadInstEliminationPass());  // Remove Dead code/vars
   addPass(PM, createRaiseAllocationsPass());     // call %malloc -> malloc inst
   addPass(PM, createIndVarSimplifyPass());       // Simplify indvars
-  addPass(PM, createRaisePointerReferencesPass(TD));// Recover type information
+  addPass(PM, createRaisePointerReferencesPass());// Recover type information
   addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
   addPass(PM, createPromoteMemoryToRegister());  // Promote alloca's to regs
   addPass(PM, createReassociatePass());          // Reassociate expressions
@@ -96,6 +93,9 @@
 
 int main(int argc, char **argv) {
   cl::ParseCommandLineOptions(argc, argv, " llvm .s -> .o assembler for GCC\n");
+
+  // FIXME: This should eventually be parameterized...
+  TargetData TD("gccas target");
 
   std::auto_ptr<Module> M;
   try {





More information about the llvm-commits mailing list