[llvm-commits] CVS: llvm/tools/llc/llc.cpp
Owen Anderson
resistor at mac.com
Tue May 2 18:30:22 PDT 2006
Changes in directory llvm/tools/llc:
llc.cpp updated: 1.130 -> 1.131
---
Log message:
Refactor TargetMachine, pushing handling of TargetData into the target-specific subclasses. This has one caller-visible change: getTargetData() now returns a pointer instead of a reference.
This fixes PR 759: http://llvm.cs.uiuc.edu/PR759 .
---
Diffs of the changes: (+1 -1)
llc.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/tools/llc/llc.cpp
diff -u llvm/tools/llc/llc.cpp:1.130 llvm/tools/llc/llc.cpp:1.131
--- llvm/tools/llc/llc.cpp:1.130 Tue Apr 18 00:31:20 2006
+++ llvm/tools/llc/llc.cpp Tue May 2 20:29:57 2006
@@ -143,7 +143,7 @@
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();
+ const TargetData *TD = Target.getTargetData();
// Build up all of the passes that we want to do to the module...
PassManager Passes;
More information about the llvm-commits
mailing list