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

Chris Lattner lattner at cs.uiuc.edu
Fri Jun 24 20:00:45 PDT 2005



Changes in directory llvm/tools/llc:

llc.cpp updated: 1.106 -> 1.107
---
Log message:

minor cleanups, use copy ctor instead of manually doing it.


---
Diffs of the changes:  (+3 -4)

 llc.cpp |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)


Index: llvm/tools/llc/llc.cpp
diff -u llvm/tools/llc/llc.cpp:1.106 llvm/tools/llc/llc.cpp:1.107
--- llvm/tools/llc/llc.cpp:1.106	Fri Jun 24 21:50:35 2005
+++ llvm/tools/llc/llc.cpp	Fri Jun 24 22:00:34 2005
@@ -42,7 +42,7 @@
 static cl::opt<bool> Force("f", cl::desc("Overwrite output files"));
 
 static cl::opt<const TargetMachineRegistry::Entry*, false, TargetNameParser>
-MArch("march", cl::desc("Architecture to generate assembly for:"));
+MArch("march", cl::desc("Architecture to generate code for:"));
 
 // GetFileNameRoot - Helper function to get the basename of a filename...
 static inline std::string
@@ -97,8 +97,7 @@
 
     // Build up all of the passes that we want to do to the module...
     PassManager Passes;
-    Passes.add(new TargetData("llc", TD.isLittleEndian(), TD.getPointerSize(),
-                              TD.getPointerAlignment(), TD.getDoubleAlignment()));
+    Passes.add(new TargetData(TD));
 
     // Figure out where we are going to send the output...
     std::ostream *Out = 0;
@@ -153,7 +152,7 @@
       }
     }
 
-    // Ask the target to add backend passes as necessary
+    // Ask the target to add backend passes as necessary.
     if (Target.addPassesToEmitFile(Passes, *Out, TargetMachine::AssemblyFile)) {
       std::cerr << argv[0] << ": target '" << Target.getName()
                 << "' does not support static compilation!\n";






More information about the llvm-commits mailing list