[llvm-commits] [llvm] r159680 - /llvm/trunk/lib/VMCore/AsmWriter.cpp
Bill Wendling
isanbard at gmail.com
Tue Jul 3 13:01:02 PDT 2012
Author: void
Date: Tue Jul 3 15:01:02 2012
New Revision: 159680
URL: http://llvm.org/viewvc/llvm-project?rev=159680&view=rev
Log:
Use the DebugInfo's 'print()' method to emit the comments.
These give quite a bit more information about the DebugInfo and makes it more
readable.
Modified:
llvm/trunk/lib/VMCore/AsmWriter.cpp
Modified: llvm/trunk/lib/VMCore/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/AsmWriter.cpp?rev=159680&r1=159679&r2=159680&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/trunk/lib/VMCore/AsmWriter.cpp Tue Jul 3 15:01:02 2012
@@ -2043,10 +2043,12 @@
unsigned Tag = Desc.getTag();
Out.PadToColumn(50);
- if (Tag == dwarf::DW_TAG_user_base)
+ if (dwarf::TagString(Tag)) {
+ Out << "; ";
+ Desc.print(Out);
+ } else if (Tag == dwarf::DW_TAG_user_base) {
Out << "; [ DW_TAG_user_base ]";
- else if (const char *TagName = dwarf::TagString(Tag))
- Out << "; [ " << TagName << " ]";
+ }
}
void AssemblyWriter::writeAllMDNodes() {
More information about the llvm-commits
mailing list