From b353459d68a53733f2551d04e84dd54d8df8b67f Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 8 Jan 2008 02:07:10 +0000 Subject: [PATCH] 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 --- lib/Target/X86/X86TargetMachine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()) -- 2.34.1