diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llc/llc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 4d36e83..1df22ac 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -143,11 +143,10 @@ int main(int argc, char **argv) { 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) |