diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-03-01 22:18:09 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-01 22:18:09 +0000 |
commit | 246ae0dcf750401ee84e1319ebe0b790744097a5 (patch) | |
tree | dcebcf47aa7c88c667ffdff2deffff25606a39a8 /lib/CodeGen/AsmPrinter.cpp | |
parent | a4ffcc23a268cf9b74a74035a92c9a3c4a753214 (diff) |
Don't print llvm constant in assmebly file. Assembler won't like comments that
span multiple lines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index 92a2d7ba8d..ea959b516f 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter.cpp @@ -11,6 +11,7 @@ // //===----------------------------------------------------------------------===// +#include "llvm/Assembly/Writer.h" #include "llvm/DerivedTypes.h" #include "llvm/CodeGen/AsmPrinter.h" #include "llvm/Constants.h" @@ -114,7 +115,8 @@ void AsmPrinter::EmitConstantPool(MachineConstantPool *MCP) { EmitAlignment(MCP->getConstantPoolAlignment()); for (unsigned i = 0, e = CP.size(); i != e; ++i) { O << PrivateGlobalPrefix << "CPI" << getFunctionNumber() << '_' << i - << ":\t\t\t\t\t" << CommentString << *CP[i].Val << '\n'; + << ":\t\t\t\t\t" << CommentString << " "; + WriteTypeSymbolic(O, CP[i].Val->getType(), 0) << '\n'; EmitGlobalConstant(CP[i].Val); if (i != e-1) { unsigned EntSize = TM.getTargetData().getTypeSize(CP[i].Val->getType()); |