summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-09-11 23:05:20 +0000
committerAdrian Prantl <aprantl@apple.com>2017-09-11 23:05:20 +0000
commit16aa4cf7efbcd40c5a6dfcb876d98a991dfe2cfb (patch)
tree0c4d525986263e576d5d50bb1ff301468ac7083f /llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
parent32a40564385ba3b0f96b00e281d854ac2a54b457 (diff)
downloadbcm5719-llvm-16aa4cf7efbcd40c5a6dfcb876d98a991dfe2cfb.tar.gz
bcm5719-llvm-16aa4cf7efbcd40c5a6dfcb876d98a991dfe2cfb.zip
llvm-dwarfdump: Make -brief the default and add a -verbose option instead.
Differential Revision: https://reviews.llvm.org/D37717 llvm-svn: 312972
Diffstat (limited to 'llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp')
-rw-r--r--llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
index 990104b71c7..5ebcc81ac9c 100644
--- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
+++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
@@ -57,7 +57,10 @@ static cl::opt<bool>
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 cl::opt<bool> Verbose("verbose",
+ cl::desc("Print more low-level encoding details"));
+static cl::alias VerboseAlias("v", cl::desc("Alias for -verbose"),
+ cl::aliasopt(Verbose));
static void error(StringRef Filename, std::error_code EC) {
if (!EC)
@@ -79,7 +82,7 @@ static void DumpObjectFile(ObjectFile &Obj, Twine Filename) {
DIDumpOptions DumpOpts;
DumpOpts.DumpType = DumpType;
DumpOpts.SummarizeTypes = SummarizeTypes;
- DumpOpts.Brief = Brief;
+ DumpOpts.Brief = !Verbose;
DICtx->dump(outs(), DumpOpts);
}
@@ -199,10 +202,10 @@ int main(int argc, char **argv) {
if (DumpAll)
DumpType = DIDT_All;
if (DumpType == DIDT_Null) {
- if (Brief)
- DumpType = DIDT_DebugInfo;
- else
+ if (Verbose)
DumpType = DIDT_All;
+ else
+ DumpType = DIDT_DebugInfo;
}
// Defaults to a.out if no filenames specified.
OpenPOWER on IntegriCloud