projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f69603
)
add support for printing offset from global
author
Chris Lattner
<sabre@nondot.org>
Thu, 3 May 2007 16:42:23 +0000
(16:42 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 3 May 2007 16:42:23 +0000
(16:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36669
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/ARMAsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMAsmPrinter.cpp
b/lib/Target/ARM/ARMAsmPrinter.cpp
index 6cda7ebe1f65a36f950eba35458da4a75be7ef67..ac392607b067533862f9e9382a4895ec26176b33 100644
(file)
--- a/
lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/
lib/Target/ARM/ARMAsmPrinter.cpp
@@
-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)";