diff options
author | Chris Lattner <sabre@nondot.org> | 2005-10-31 22:12:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-10-31 22:12:06 +0000 |
commit | bb69e39b5b8ddf7243e2b77cebe2f9f23ba819b2 (patch) | |
tree | b912df0ef8c3e8daf13fda4a7bac1d39b113b311 | |
parent | 42e957ce34f44d2c3bbecb4835693d124a3fa316 (diff) |
Make constant pool entries use private labels. This is important when you're
not compiling a whole program at a time :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24129 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/PPCAsmPrinter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp index 0004424fd2..e4cfd63aa3 100644 --- a/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -294,7 +294,7 @@ void PPCAsmPrinter::printOp(const MachineOperand &MO, bool IsCallOp) { } case MachineOperand::MO_ConstantPoolIndex: - O << ".CPI" << CurrentFnName << "_" << MO.getConstantPoolIndex(); + O << "LCPI" << CurrentFnName << "_" << MO.getConstantPoolIndex(); return; case MachineOperand::MO_ExternalSymbol: @@ -436,7 +436,7 @@ void DarwinAsmPrinter::printConstantPool(MachineConstantPool *MCP) { 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 @@ void AIXAsmPrinter::printConstantPool(MachineConstantPool *MCP) { 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]); } |