1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00

Print the Constant pool

llvm-svn: 19975
This commit is contained in:
Andrew Lenharth 2005-02-01 20:38:53 +00:00
parent 540700124d
commit 9086064b72

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)