[llvm-commits] CVS: llvm/lib/Target/ARM/ARMAsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Thu May 3 09:42:41 PDT 2007
Changes in directory llvm/lib/Target/ARM:
ARMAsmPrinter.cpp updated: 1.69 -> 1.70
---
Log message:
add support for printing offset from global
---
Diffs of the changes: (+6 -0)
ARMAsmPrinter.cpp | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/lib/Target/ARM/ARMAsmPrinter.cpp
diff -u llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.69 llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.70
--- llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.69 Sun Apr 29 19:23:51 2007
+++ llvm/lib/Target/ARM/ARMAsmPrinter.cpp Thu May 3 11:42:23 2007
@@ -294,6 +294,12 @@
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)";
More information about the llvm-commits
mailing list