summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2017-10-02 16:02:04 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2017-10-02 16:02:04 +0000
commitf91dc28b7b64e2ad75ccb21d66db3ff5f8b780d4 (patch)
tree0814a278c81b5ab46fa02785f3fc74f53e07dc64 /llvm/lib
parentb7055bb8130ab84bc4b47849c0ff25d00b5ecca1 (diff)
downloadbcm5719-llvm-f91dc28b7b64e2ad75ccb21d66db3ff5f8b780d4.tar.gz
bcm5719-llvm-f91dc28b7b64e2ad75ccb21d66db3ff5f8b780d4.zip
[dwarfdump] Add -show-form
This enables printing of DWARF form types after the DWARF attribute types. Differential revision: https://reviews.llvm.org/D38459 llvm-svn: 314685
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFDie.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
index 31074a81a98..a2371038b96 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
@@ -139,7 +139,7 @@ static void dumpAttribute(raw_ostream &OS, const DWARFDie &Die,
else
WithColor(OS, syntax::Attribute).get() << format("DW_AT_Unknown_%x", Attr);
- if (DumpOpts.Verbose) {
+ if (DumpOpts.Verbose || DumpOpts.ShowForm) {
auto formString = FormEncodingString(Form);
if (!formString.empty())
OS << " [" << formString << ']';
OpenPOWER on IntegriCloud