diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2017-08-22 21:41:49 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2017-08-22 21:41:49 +0000 |
commit | f456d1864dc1d1427d799771965fbfd9d99e45a3 (patch) | |
tree | 5859e828c44939a2f892d0a692162d15b4739aec /llvm/lib/DebugInfo | |
parent | 001052a067d87a666a541d48ae6f3c502dedd675 (diff) | |
download | bcm5719-llvm-f456d1864dc1d1427d799771965fbfd9d99e45a3.tar.gz bcm5719-llvm-f456d1864dc1d1427d799771965fbfd9d99e45a3.zip |
[llvm-dwarfdump] Print type names in DW_AT_type DIEs
This patch adds printing for DW_AT_type DIEs like it's currently already
the case for DW_AT_specification DIEs.
llvm-svn: 311492
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDie.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp index 9ad4b5212ee..9aaa4dd53c9 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp @@ -135,7 +135,8 @@ static void dumpAttribute(raw_ostream &OS, const DWARFDie &Die, // We have dumped the attribute raw value. For some attributes // having both the raw value and the pretty-printed value is // interesting. These attributes are handled below. - if (Attr == DW_AT_specification || Attr == DW_AT_abstract_origin) { + if (Attr == DW_AT_specification || Attr == DW_AT_abstract_origin || + Attr == DW_AT_type) { if (const char *Name = Die.getAttributeValueAsReferencedDie(Attr).getName(DINameKind::LinkageName)) OS << " \"" << Name << '\"'; } else if (Attr == DW_AT_APPLE_property_attribute) { |