From: Evan Cheng Date: Tue, 8 Jan 2008 02:07:10 +0000 (+0000) Subject: Minor fix to enable x86-64 pic jit (still fails for other reasons). X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b353459d68a53733f2551d04e84dd54d8df8b67f;p=oota-llvm.git 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 --- diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 0c7ecf00097..3c527c50b62 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -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())