[llvm-commits] CVS: llvm/lib/Target/X86/X86CodeEmitter.cpp
Evan Cheng
evan.cheng at apple.com
Wed Mar 14 13:20:36 PDT 2007
Changes in directory llvm/lib/Target/X86:
X86CodeEmitter.cpp updated: 1.130 -> 1.131
---
Log message:
Clean up.
---
Diffs of the changes: (+4 -3)
X86CodeEmitter.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/X86/X86CodeEmitter.cpp
diff -u llvm/lib/Target/X86/X86CodeEmitter.cpp:1.130 llvm/lib/Target/X86/X86CodeEmitter.cpp:1.131
--- llvm/lib/Target/X86/X86CodeEmitter.cpp:1.130 Wed Mar 14 05:51:55 2007
+++ llvm/lib/Target/X86/X86CodeEmitter.cpp Wed Mar 14 15:20:19 2007
@@ -656,9 +656,10 @@
if (MO.isMachineBasicBlock()) {
emitPCRelativeBlockAddress(MO.getMachineBasicBlock());
} else if (MO.isGlobalAddress()) {
- bool isTailCall = Opcode == X86::TAILJMPd ||
- Opcode == X86::TAILJMPr || Opcode == X86::TAILJMPm;
- emitGlobalAddressForCall(MO.getGlobal(), !isTailCall && !Is64BitMode);
+ bool NeedStub = Is64BitMode ||
+ Opcode == X86::TAILJMPd ||
+ Opcode == X86::TAILJMPr || Opcode == X86::TAILJMPm;
+ emitGlobalAddressForCall(MO.getGlobal(), !NeedStub);
} else if (MO.isExternalSymbol()) {
emitExternalSymbolAddress(MO.getSymbolName(), X86::reloc_pcrel_word);
} else if (MO.isImmediate()) {
More information about the llvm-commits
mailing list