diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-07-03 20:01:02 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-07-03 20:01:02 +0000 |
commit | 86b032b2abcf8a66282241937861156fc432fa33 (patch) | |
tree | d52430d46c73cb29f5b5c266e359b0ca12299989 | |
parent | 42d80c7a5b369285c10c0dc4b2e025f7a65d635e (diff) | |
download | external_llvm-86b032b2abcf8a66282241937861156fc432fa33.zip external_llvm-86b032b2abcf8a66282241937861156fc432fa33.tar.gz external_llvm-86b032b2abcf8a66282241937861156fc432fa33.tar.bz2 |
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
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 99e2687..669d308 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -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() { |