mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
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:
parent
42d80c7a5b
commit
86b032b2ab
@ -2043,10 +2043,12 @@ static void WriteMDNodeComment(const MDNode *Node,
|
|||||||
|
|
||||||
unsigned Tag = Desc.getTag();
|
unsigned Tag = Desc.getTag();
|
||||||
Out.PadToColumn(50);
|
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 ]";
|
Out << "; [ DW_TAG_user_base ]";
|
||||||
else if (const char *TagName = dwarf::TagString(Tag))
|
}
|
||||||
Out << "; [ " << TagName << " ]";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AssemblyWriter::writeAllMDNodes() {
|
void AssemblyWriter::writeAllMDNodes() {
|
||||||
|
Loading…
Reference in New Issue
Block a user