1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

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 a97ce790d0
commit 4dd59a2bfb
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>>*/
]>;
*/