mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-02 13:21:43 +00:00
add support for printing offset from global
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36669 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5f696035e5
commit
388488d604
@ -294,6 +294,12 @@ void ARMAsmPrinter::printOperand(const MachineInstr *MI, int opNum,
|
||||
FnStubs.insert(Name);
|
||||
} else
|
||||
O << Name;
|
||||
|
||||
if (MO.getOffset() > 0)
|
||||
O << '+' << MO.getOffset();
|
||||
else if (MO.getOffset() < 0)
|
||||
O << MO.getOffset();
|
||||
|
||||
if (isCallOp && Subtarget->isTargetELF() &&
|
||||
TM.getRelocationModel() == Reloc::PIC_)
|
||||
O << "(PLT)";
|
||||
|
Loading…
x
Reference in New Issue
Block a user