forked from OSchip/llvm-project
add support for printing offset from global
llvm-svn: 36669
This commit is contained in:
parent
90bb4fc96b
commit
9a8c7cf00b
|
|
@ -294,6 +294,12 @@ void ARMAsmPrinter::printOperand(const MachineInstr *MI, int opNum,
|
||||||
FnStubs.insert(Name);
|
FnStubs.insert(Name);
|
||||||
} else
|
} else
|
||||||
O << Name;
|
O << Name;
|
||||||
|
|
||||||
|
if (MO.getOffset() > 0)
|
||||||
|
O << '+' << MO.getOffset();
|
||||||
|
else if (MO.getOffset() < 0)
|
||||||
|
O << MO.getOffset();
|
||||||
|
|
||||||
if (isCallOp && Subtarget->isTargetELF() &&
|
if (isCallOp && Subtarget->isTargetELF() &&
|
||||||
TM.getRelocationModel() == Reloc::PIC_)
|
TM.getRelocationModel() == Reloc::PIC_)
|
||||||
O << "(PLT)";
|
O << "(PLT)";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue