mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 04:45:00 +00:00
add support for printing offset from global
llvm-svn: 36669
This commit is contained in:
parent
e980180c9d
commit
5d81bf937b
@ -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