Print the Constant pool

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19975 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Lenharth 2005-02-01 20:38:53 +00:00
parent ae088f4b1d
commit f61ed95a03

View File

@ -211,14 +211,13 @@ void AlphaAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
if (CP.empty()) return;
abort();
// for (unsigned i = 0, e = CP.size(); i != e; ++i) {
// O << "\t.section\t.rodata\n";
// emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
// O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
// << *CP[i] << "\n";
// //emitGlobalConstant(CP[i]);
// }
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
O << "\t.section\t.rodata\n";
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
O << "$CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
<< *CP[i] << "\n";
emitGlobalConstant(CP[i]);
}
}
bool AlphaAsmPrinter::doInitialization(Module &M)