add support for printing offset of global

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36667 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-05-03 16:39:48 +00:00
parent 6f858e250b
commit 4105a9fec0
2 changed files with 6 additions and 3 deletions

View File

@ -396,6 +396,11 @@ void PPCAsmPrinter::printOp(const MachineOperand &MO) {
}
O << Name;
if (MO.getOffset() > 0)
O << "+" << MO.getOffset();
else if (MO.getOffset() < 0)
O << MO.getOffset();
if (GV->hasExternalWeakLinkage())
ExtWeakSymbols.insert(GV);
return;

View File

@ -35,7 +35,7 @@ def RetCC_PPC : CallingConv<[
//===----------------------------------------------------------------------===//
// 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 @@ def CC_PPC : CallingConv<[
CCAssignToStack<16, 16>>*/
]>;
*/