X86CodeEmitter should not set PIC style to None at initialization time. This will...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 22 May 2008 23:55:24 +0000 (23:55 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 22 May 2008 23:55:24 +0000 (23:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51455 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86TargetMachine.cpp

index a60ce09ab9c739fa50623438273e4751dd72c197..19ceef8de153907fb9d6ff52bae45bc5a62abce2 100644 (file)
@@ -180,10 +180,8 @@ bool X86TargetMachine::addAssemblyEmitter(PassManagerBase &PM, bool Fast,
 bool X86TargetMachine::addCodeEmitter(PassManagerBase &PM, bool Fast,
                                       bool DumpAsm, MachineCodeEmitter &MCE) {
   // FIXME: Move this to TargetJITInfo!
-  if (DefRelocModel == Reloc::Default) {
+  if (DefRelocModel == Reloc::Default)
     setRelocationModel(Reloc::Static);
-    Subtarget.setPICStyle(PICStyle::None);
-  }
   
   // JIT cannot ensure globals are placed in the lower 4G of address.
   if (Subtarget.is64Bit())