mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 23:29:20 +00:00
Unbreak tailcall opt in JIT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45576 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
be8c03fc66
commit
991500e329
@ -619,7 +619,8 @@ void Emitter::emitInstruction(const MachineInstr &MI) {
|
||||
if (MO.isMachineBasicBlock()) {
|
||||
emitPCRelativeBlockAddress(MO.getMBB());
|
||||
} else if (MO.isGlobalAddress()) {
|
||||
bool NeedStub = Is64BitMode && TM.getCodeModel() == CodeModel::Large;
|
||||
bool NeedStub = (Is64BitMode && TM.getCodeModel() == CodeModel::Large)
|
||||
|| Opcode == X86::TAILJMPd;
|
||||
emitGlobalAddress(MO.getGlobal(), X86::reloc_pcrel_word,
|
||||
0, 0, NeedStub);
|
||||
} else if (MO.isExternalSymbol()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user