mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +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…
Reference in New Issue
Block a user