summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-09-18 21:27:44 +0000
committerAdrian Prantl <aprantl@apple.com>2017-09-18 21:27:44 +0000
commitc2bc71702877756d16aa7e1e40fa858779bd7d13 (patch)
tree5af775f5061f73d1b6369095c89d01e242413fbd /llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
parentf077b5b885a5374bda8ccca3c3294f2f1d19fb91 (diff)
downloadbcm5719-llvm-c2bc71702877756d16aa7e1e40fa858779bd7d13.tar.gz
bcm5719-llvm-c2bc71702877756d16aa7e1e40fa858779bd7d13.zip
llvm-dwarfdump: add a --show-parents options when selectively dumping DIEs.
llvm-svn: 313567
Diffstat (limited to 'llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp')
-rw-r--r--llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
index c2bcd382ee3..b8d0f07ce59 100644
--- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
+++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
@@ -131,10 +131,16 @@ static alias DumpUUIDAlias("u", desc("Alias for -uuid"), aliasopt(DumpUUID));
static opt<bool>
ShowChildren("show-children",
desc("Show a debug info entry's children when selectively "
- "printing with the =<Offset> option"));
+ "printing with the =<offset> option"));
static alias ShowChildrenAlias("c", desc("Alias for -show-children"),
aliasopt(ShowChildren));
static opt<bool>
+ ShowParents("show-parents",
+ desc("Show a debug info entry's parents when selectively "
+ "printing with the =<offset> option"));
+static alias ShowParentsAlias("p", desc("Alias for -show-parents"),
+ aliasopt(ShowParents));
+static opt<bool>
SummarizeTypes("summarize-types",
desc("Abbreviate the description of type unit entries"));
static opt<bool> Verify("verify", desc("Verify the DWARF debug info"),
@@ -162,6 +168,7 @@ static DIDumpOptions getDumpOpts() {
DIDumpOptions DumpOpts;
DumpOpts.DumpType = DumpType;
DumpOpts.ShowChildren = ShowChildren;
+ DumpOpts.ShowParents = ShowParents;
DumpOpts.SummarizeTypes = SummarizeTypes;
DumpOpts.Verbose = Verbose;
return DumpOpts;
OpenPOWER on IntegriCloud