[llvm-commits] CVS: llvm/lib/Target/X86/X86CodeEmitter.cpp

Evan Cheng evan.cheng at apple.com
Wed Mar 14 03:52:12 PDT 2007



Changes in directory llvm/lib/Target/X86:

X86CodeEmitter.cpp updated: 1.129 -> 1.130
---
Log message:

X86-64 JIT is in large code model. Need stubs for direct calls.

---
Diffs of the changes:  (+1 -1)

 X86CodeEmitter.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/X86/X86CodeEmitter.cpp
diff -u llvm/lib/Target/X86/X86CodeEmitter.cpp:1.129 llvm/lib/Target/X86/X86CodeEmitter.cpp:1.130
--- llvm/lib/Target/X86/X86CodeEmitter.cpp:1.129	Fri Jan 26 08:34:51 2007
+++ llvm/lib/Target/X86/X86CodeEmitter.cpp	Wed Mar 14 05:51:55 2007
@@ -658,7 +658,7 @@
       } 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()) {






More information about the llvm-commits mailing list