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 | 6b63e0c6fdb9af7f9dde1bed3b70591cb73403e5 (patch) | |
tree | 067ca5a6d6b248f643b417ca50fb8cc5a4b5a4ac | |
parent | d44a8f546d080900a7cb1983676236ff21662d3b (diff) | |
download | llvm-6b63e0c6fdb9af7f9dde1bed3b70591cb73403e5.zip llvm-6b63e0c6fdb9af7f9dde1bed3b70591cb73403e5.tar.gz llvm-6b63e0c6fdb9af7f9dde1bed3b70591cb73403e5.tar.bz2 |
Make constant pool entries use private labels. This is important when you're
not compiling a whole program at a time :)
llvm-svn: 24129
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp index 0004424..e4cfd63 100644 --- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/llvm/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]); } |