From a19ac5286307faac5e1e759a96e4296df27873eb Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 14 Mar 2007 10:51:55 +0000 Subject: [PATCH] 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 --- lib/Target/X86/X86CodeEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp index d27e647e407..719d621f976 100644 --- a/lib/Target/X86/X86CodeEmitter.cpp +++ b/lib/Target/X86/X86CodeEmitter.cpp @@ -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()) { -- 2.34.1