We don't need to insert TargetData into the PassManager here.
authorBrian Gaeke <gaeke@uiuc.edu>
Mon, 12 Apr 2004 21:46:31 +0000 (21:46 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Mon, 12 Apr 2004 21:46:31 +0000 (21:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12874 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9TargetMachine.cpp

index 0f15b135482858da968d6fe69e9a736cb464f78f..f15f9412f836e933b6f7fef85cc9417064021ceb 100644 (file)
@@ -199,11 +199,6 @@ SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out
 /// generation for the UltraSparcV9.
 ///
 void SparcV9JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
-  const TargetData &TD = TM.getTargetData();
-
-  PM.add(new TargetData("lli", TD.isLittleEndian(), TD.getPointerSize(),
-                        TD.getPointerAlignment(), TD.getDoubleAlignment()));
-
   // Replace malloc and free instructions with library calls.
   PM.add(createLowerAllocationsPass());