diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-06-06 23:28:45 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-06-06 23:28:45 +0000 |
commit | 318d1195f2c59974b39c819d61a4fabcccd1170b (patch) | |
tree | e85ddce365160ac2506f5ccfb634be16063f9bed /llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp | |
parent | abd32bad374808ec5fd7ebd1b13f680879790ded (diff) | |
download | bcm5719-llvm-318d1195f2c59974b39c819d61a4fabcccd1170b.tar.gz bcm5719-llvm-318d1195f2c59974b39c819d61a4fabcccd1170b.zip |
Introduce -brief command line option to llvm-dwarfdump
This patch introduces a new command line option, called brief, to
llvm-dwarfdump. When -brief is used, the attribute forms for the
.debug_info section will not be emitted to output.
Patch by Spyridoula Gravani!
rdar://problem/21474365
Differential Revision: https://reviews.llvm.org/D33867
llvm-svn: 304844
Diffstat (limited to 'llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp')
-rw-r--r-- | llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp index 71a6af6c637..1da157c4e4d 100644 --- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -84,6 +84,8 @@ static cl::opt<bool> Verify("verify", cl::desc("Verify the DWARF debug info")); static cl::opt<bool> Quiet("quiet", cl::desc("Use with -verify to not emit to STDOUT.")); +static cl::opt<bool> Brief("brief", cl::desc("Print fewer low-level details")); + static void error(StringRef Filename, std::error_code EC) { if (!EC) return; @@ -101,6 +103,7 @@ static void DumpObjectFile(ObjectFile &Obj, Twine Filename) { DIDumpOptions DumpOpts; DumpOpts.DumpType = DumpType; DumpOpts.SummarizeTypes = SummarizeTypes; + DumpOpts.Brief = Brief; DICtx->dump(outs(), DumpOpts); } |