summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-10-23 11:24:14 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-10-23 11:24:14 +0000
commit7fc298afe4946ea5b9740d30a641ff3260967530 (patch)
treec7dded1f82dd58461556896fc19aaa1b25ddaa81 /llvm/lib
parent4b2bd5ff5e7e6e34deaf6461a0c0e7d714e63b43 (diff)
downloadbcm5719-llvm-7fc298afe4946ea5b9740d30a641ff3260967530.tar.gz
bcm5719-llvm-7fc298afe4946ea5b9740d30a641ff3260967530.zip
[llvm-dwarfdump] - Teach tool about few GNU call_sites constants.
This teaches tool about following consants: DW_TAG_GNU_call_site, DW_TAG_GNU_call_site_parameter, DW_AT_GNU_call_site_value, DW_AT_GNU_all_call_sites. Constants documented here: https://sourceware.org/elfutils/DwarfExtensions Differential revision: https://reviews.llvm.org/D39119 llvm-svn: 316321
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFDie.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
index 1b5744e8bea..a534d3628ef 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
@@ -234,7 +234,8 @@ static void dumpAttribute(raw_ostream &OS, const DWARFDie &Die,
else if (Attr == DW_AT_decl_line || Attr == DW_AT_call_line)
OS << *formValue.getAsUnsignedConstant();
else if (Attr == DW_AT_location || Attr == DW_AT_frame_base ||
- Attr == DW_AT_data_member_location)
+ Attr == DW_AT_data_member_location ||
+ Attr == DW_AT_GNU_call_site_value)
dumpLocation(OS, formValue, U, sizeof(BaseIndent) + Indent + 4, DumpOpts);
else
formValue.dump(OS, DumpOpts);
OpenPOWER on IntegriCloud