mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-02 16:54:58 +00:00
Clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35105 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
774be29769
commit
e70ef98043
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user