make constant pool labels local

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22294 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Lenharth 2005-06-27 16:29:54 +00:00
parent 3b91807da7
commit 98f0eee406

View File

@ -135,7 +135,7 @@ void AlphaAsmPrinter::printOp(const MachineOperand &MO, bool IsCallOp) {
} }
case MachineOperand::MO_ConstantPoolIndex: case MachineOperand::MO_ConstantPoolIndex:
O << "CPI" << CurrentFnName << "_" << MO.getConstantPoolIndex(); O << "$CPI" << CurrentFnName << "_" << MO.getConstantPoolIndex();
return; return;
case MachineOperand::MO_ExternalSymbol: case MachineOperand::MO_ExternalSymbol:
@ -226,7 +226,7 @@ void AlphaAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
for (unsigned i = 0, e = CP.size(); i != e; ++i) { for (unsigned i = 0, e = CP.size(); i != e; ++i) {
// SwitchSection(O, "section .rodata, \"dr\""); // SwitchSection(O, "section .rodata, \"dr\"");
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType())); emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
O << "CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString O << "$CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
<< *CP[i] << "\n"; << *CP[i] << "\n";
emitGlobalConstant(CP[i]); emitGlobalConstant(CP[i]);
} }