Minor fix to enable x86-64 pic jit (still fails for other reasons).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45734 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2008-01-08 02:07:10 +00:00
parent b1a9aec515
commit b353459d68

View File

@ -171,9 +171,10 @@ bool X86TargetMachine::addAssemblyEmitter(FunctionPassManager &PM, bool Fast,
bool X86TargetMachine::addCodeEmitter(FunctionPassManager &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);
Subtarget.setPICStyle(PICStyle::None);
}
// JIT cannot ensure globals are placed in the lower 4G of address.
if (Subtarget.is64Bit())