[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp PPCCallingConv.td
Chris Lattner
sabre at nondot.org
Thu May 3 09:40:07 PDT 2007
Changes in directory llvm/lib/Target/PowerPC:
PPCAsmPrinter.cpp updated: 1.238 -> 1.239
PPCCallingConv.td updated: 1.3 -> 1.4
---
Log message:
add support for printing offset of global
---
Diffs of the changes: (+6 -3)
PPCAsmPrinter.cpp | 5 +++++
PPCCallingConv.td | 4 +---
2 files changed, 6 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.238 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.239
--- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.238 Tue Apr 24 17:51:03 2007
+++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp Thu May 3 11:39:48 2007
@@ -396,6 +396,11 @@
}
O << Name;
+ if (MO.getOffset() > 0)
+ O << "+" << MO.getOffset();
+ else if (MO.getOffset() < 0)
+ O << MO.getOffset();
+
if (GV->hasExternalWeakLinkage())
ExtWeakSymbols.insert(GV);
return;
Index: llvm/lib/Target/PowerPC/PPCCallingConv.td
diff -u llvm/lib/Target/PowerPC/PPCCallingConv.td:1.3 llvm/lib/Target/PowerPC/PPCCallingConv.td:1.4
--- llvm/lib/Target/PowerPC/PPCCallingConv.td:1.3 Tue Apr 3 07:35:28 2007
+++ llvm/lib/Target/PowerPC/PPCCallingConv.td Thu May 3 11:39:48 2007
@@ -35,7 +35,7 @@
//===----------------------------------------------------------------------===//
// PowerPC Argument Calling Conventions
//===----------------------------------------------------------------------===//
-/*
+
def CC_PPC : CallingConv<[
// The first 8 integer arguments are passed in integer registers.
CCIfType<[i32], CCAssignToReg<[R3, R4, R5, R6, R7, R8, R9, R10]>>,
@@ -61,5 +61,3 @@
CCAssignToStack<16, 16>>*/
]>;
-*/
-
More information about the llvm-commits
mailing list