mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-02 09:58:06 +00:00
X86-64 JIT is in large code model. Need stubs for direct calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35097 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8510dc086e
commit
a19ac52863
@ -658,7 +658,7 @@ void Emitter::emitInstruction(const MachineInstr &MI) {
|
||||
} else if (MO.isGlobalAddress()) {
|
||||
bool isTailCall = Opcode == X86::TAILJMPd ||
|
||||
Opcode == X86::TAILJMPr || Opcode == X86::TAILJMPm;
|
||||
emitGlobalAddressForCall(MO.getGlobal(), !isTailCall);
|
||||
emitGlobalAddressForCall(MO.getGlobal(), !isTailCall && !Is64BitMode);
|
||||
} else if (MO.isExternalSymbol()) {
|
||||
emitExternalSymbolAddress(MO.getSymbolName(), X86::reloc_pcrel_word);
|
||||
} else if (MO.isImmediate()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user