diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2007-03-14 10:51:55 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2007-03-14 10:51:55 +0000 |
| commit | dda4c32db3cef62c8e6446817ee6df13d01fafe9 (patch) | |
| tree | b97c61da4c842e5b4c4d598b339e745bfdb203d7 /llvm/lib/Target | |
| parent | 386dfc9251851ae734cea85e4d212e7c256fe48d (diff) | |
| download | bcm5719-llvm-dda4c32db3cef62c8e6446817ee6df13d01fafe9.tar.gz bcm5719-llvm-dda4c32db3cef62c8e6446817ee6df13d01fafe9.zip | |
X86-64 JIT is in large code model. Need stubs for direct calls.
llvm-svn: 35097
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/X86/X86CodeEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86CodeEmitter.cpp b/llvm/lib/Target/X86/X86CodeEmitter.cpp index d27e647e407..719d621f976 100644 --- a/llvm/lib/Target/X86/X86CodeEmitter.cpp +++ b/llvm/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()) { |

