[llvm-commits] CVS: llvm/tools/llc/llc.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu May 4 14:18:53 PDT 2006
Changes in directory llvm/tools/llc:
llc.cpp updated: 1.131 -> 1.132
---
Log message:
Adjust to use proper TargetData copy ctor
---
Diffs of the changes: (+1 -2)
llc.cpp | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: llvm/tools/llc/llc.cpp
diff -u llvm/tools/llc/llc.cpp:1.131 llvm/tools/llc/llc.cpp:1.132
--- llvm/tools/llc/llc.cpp:1.131 Tue May 2 20:29:57 2006
+++ llvm/tools/llc/llc.cpp Thu May 4 16:18:40 2006
@@ -143,11 +143,10 @@
std::auto_ptr<TargetMachine> target(MArch->CtorFn(mod, FeaturesStr));
assert(target.get() && "Could not allocate target machine!");
TargetMachine &Target = *target.get();
- const TargetData *TD = Target.getTargetData();
// Build up all of the passes that we want to do to the module...
PassManager Passes;
- Passes.add(new TargetData(TD));
+ Passes.add(new TargetData(*Target.getTargetData()));
#ifndef NDEBUG
if(!NoVerify)
More information about the llvm-commits
mailing list