summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2019-12-21 23:05:35 -0800
committerDavid Blaikie <dblaikie@gmail.com>2019-12-23 19:18:47 -0800
commit199700a5cfeedf227619f966aa3125cef18bc958 (patch)
tree3efb35883264cadc6a0616c27d4d2b8717a67f4c /llvm/lib/DebugInfo
parent0f0d0ed1c78f1a80139a1f2133fad5284691a121 (diff)
downloadbcm5719-llvm-199700a5cfeedf227619f966aa3125cef18bc958.tar.gz
bcm5719-llvm-199700a5cfeedf227619f966aa3125cef18bc958.zip
DebugInfo: Support dumping any exprloc as an expression
Now that DWARFv5 provides a way to identify DWARF expressions based on form, rather than only by attribute - use it to always provide pretty printing for any exprloc attribute, not only the attributes known to contain expressions.
Diffstat (limited to 'llvm/lib/DebugInfo')
-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 558d8006501..c1dc3b68c6a 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
@@ -279,7 +279,8 @@ static void dumpAttribute(raw_ostream &OS, const DWARFDie &Die,
else
FormValue.dump(OS, DumpOpts);
}
- } else if (DWARFAttribute::mayHaveLocationDescription(Attr))
+ } else if (Form == dwarf::Form::DW_FORM_exprloc ||
+ DWARFAttribute::mayHaveLocationDescription(Attr))
dumpLocation(OS, FormValue, U, sizeof(BaseIndent) + Indent + 4, DumpOpts);
else
FormValue.dump(OS, DumpOpts);
OpenPOWER on IntegriCloud