forked from OSchip/llvm-project
add support for printing offset of global
llvm-svn: 36667
This commit is contained in:
parent
e27e6e6fa8
commit
c1a2a3b344
|
@ -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;
|
||||
|
|
|
@ -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>>*/
|
||||
]>;
|
||||
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue