mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-18 12:09:38 +00:00
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:
parent
b1a9aec515
commit
b353459d68
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user