From: Andrew Lenharth Date: Tue, 1 Feb 2005 20:38:53 +0000 (+0000) Subject: Print the Constant pool X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f61ed95a031ec6fcce620728cc1c324bd1b02793;p=oota-llvm.git Print the Constant pool git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19975 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Alpha/AlphaAsmPrinter.cpp b/lib/Target/Alpha/AlphaAsmPrinter.cpp index aaa5a543150..5e316120ffb 100644 --- a/lib/Target/Alpha/AlphaAsmPrinter.cpp +++ b/lib/Target/Alpha/AlphaAsmPrinter.cpp @@ -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)