diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-03-14 20:20:19 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-03-14 20:20:19 +0000 |
commit | e278f30a52e2bec466b6a4a635e03112f1862b0b (patch) | |
tree | 9e85749f58221ebc577750961096056df66dfedd /llvm/lib/Target/X86/X86CodeEmitter.cpp | |
parent | eb76f7c6fd64c60ad8994c9a6c9ae65dbead697b (diff) | |
download | bcm5719-llvm-e278f30a52e2bec466b6a4a635e03112f1862b0b.tar.gz bcm5719-llvm-e278f30a52e2bec466b6a4a635e03112f1862b0b.zip |
Clean up.
llvm-svn: 35105
Diffstat (limited to 'llvm/lib/Target/X86/X86CodeEmitter.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86CodeEmitter.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86CodeEmitter.cpp b/llvm/lib/Target/X86/X86CodeEmitter.cpp index 719d621f976..899e30f6f49 100644 --- a/llvm/lib/Target/X86/X86CodeEmitter.cpp +++ b/llvm/lib/Target/X86/X86CodeEmitter.cpp @@ -656,9 +656,10 @@ void Emitter::emitInstruction(const MachineInstr &MI) { 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()) { |