add support for printing offset of global

llvm-svn: 36667
This commit is contained in:
Chris Lattner 2007-05-03 16:39:48 +00:00
parent e27e6e6fa8
commit c1a2a3b344
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>>*/
]>;
*/