Skip to content

Commit 6b63e0c

Browse files
committed
Make constant pool entries use private labels. This is important when you're
not compiling a whole program at a time :) llvm-svn: 24129
1 parent d44a8f5 commit 6b63e0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ void PPCAsmPrinter::printOp(const MachineOperand &MO, bool IsCallOp) {
294294
}
295295

296296
case MachineOperand::MO_ConstantPoolIndex:
297-
O << ".CPI" << CurrentFnName << "_" << MO.getConstantPoolIndex();
297+
O << "LCPI" << CurrentFnName << "_" << MO.getConstantPoolIndex();
298298
return;
299299

300300
case MachineOperand::MO_ExternalSymbol:
@@ -436,7 +436,7 @@ void DarwinAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
436436
emitAlignment(3);
437437
else
438438
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
439-
O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
439+
O << "LCPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
440440
<< *CP[i] << "\n";
441441
emitGlobalConstant(CP[i]);
442442
}
@@ -633,7 +633,7 @@ void AIXAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
633633
O << "\t.const\n";
634634
O << "\t.align " << (unsigned)TD.getTypeAlignment(CP[i]->getType())
635635
<< "\n";
636-
O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t;"
636+
O << "LCPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t;"
637637
<< *CP[i] << "\n";
638638
emitGlobalConstant(CP[i]);
639639
}

0 commit comments

Comments
 (0)