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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159680 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2012-07-03 20:01:02 +00:00
parent 42d80c7a5b
commit 86b032b2ab

View File

@ -2043,10 +2043,12 @@ static void WriteMDNodeComment(const MDNode *Node,
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() {