[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 31 14:12:17 PST 2005
Changes in directory llvm/lib/Target/PowerPC:
PPCAsmPrinter.cpp updated: 1.101 -> 1.102
---
Log message:
Make constant pool entries use private labels. This is important when you're
not compiling a whole program at a time :)
---
Diffs of the changes: (+3 -3)
PPCAsmPrinter.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.101 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.102
--- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.101 Fri Oct 28 13:44:07 2005
+++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp Mon Oct 31 16:12:06 2005
@@ -294,7 +294,7 @@
}
case MachineOperand::MO_ConstantPoolIndex:
- O << ".CPI" << CurrentFnName << "_" << MO.getConstantPoolIndex();
+ O << "LCPI" << CurrentFnName << "_" << MO.getConstantPoolIndex();
return;
case MachineOperand::MO_ExternalSymbol:
@@ -436,7 +436,7 @@
emitAlignment(3);
else
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
- O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
+ O << "LCPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
<< *CP[i] << "\n";
emitGlobalConstant(CP[i]);
}
@@ -633,7 +633,7 @@
O << "\t.const\n";
O << "\t.align " << (unsigned)TD.getTypeAlignment(CP[i]->getType())
<< "\n";
- O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t;"
+ O << "LCPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t;"
<< *CP[i] << "\n";
emitGlobalConstant(CP[i]);
}
More information about the llvm-commits
mailing list