mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +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…
Reference in New Issue
Block a user