diff options
author | David Blaikie <dblaikie@gmail.com> | 2021-12-13 19:00:38 -0800 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2021-12-13 19:00:38 -0800 |
commit | 892742907f0e18464aaf27fd29c2e16aadcf97fa (patch) | |
tree | e6a86e4b3c6fe91f9d38f39b1c77cc1ef464e4a3 /llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp | |
parent | c809da7d9ce78a463f9c5e38a9bf7b4c22b232de (diff) | |
download | llvm-892742907f0e18464aaf27fd29c2e16aadcf97fa.zip llvm-892742907f0e18464aaf27fd29c2e16aadcf97fa.tar.gz llvm-892742907f0e18464aaf27fd29c2e16aadcf97fa.tar.bz2 |
DWARFVerifier: Verbosely dump DIEs in verifier reports
Seems helpful when you're dealing with invalid/problematic DWARF. Some
diagnostic messages are probably redundant with the verbose dumping and
could be simplified with this.
Diffstat (limited to 'llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp')
-rw-r--r-- | llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp index 9eeaddf..957755a 100644 --- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -289,8 +289,10 @@ static DIDumpOptions getDumpOpts(DWARFContext &C) { DumpOpts.Verbose = Verbose; DumpOpts.RecoverableErrorHandler = C.getRecoverableErrorHandler(); // In -verify mode, print DIEs without children in error messages. - if (Verify) + if (Verify) { + DumpOpts.Verbose = true; return DumpOpts.noImplicitRecursion(); + } return DumpOpts; } |