[PATCH] D89216: [dsymutil] Add the ability to run the DWARF verifier on the input

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 11 22:12:04 PDT 2020


JDevlieghere created this revision.
JDevlieghere added reviewers: friss, aprantl, avl, clayborg.
Herald added a subscriber: dang.
Herald added a project: LLVM.
JDevlieghere requested review of this revision.

It's already possible to run the DWARF verifier on the linked dsymutil output. This patch extends this functionality and makes it possible to run the DWARF verifier on the input as well. A new option `--verify-dwarf` allows you to specify `input`, `output`, `all` and `none`. The existing `--verify` flag remains unchanged and acts and alias for `--verify-dwarf=output`. Input verification issues do not result in a non-zero exit code because dsymutil is capable of taking invalid DWARF as input and producing valid DWARF as output.


https://reviews.llvm.org/D89216

Files:
  llvm/test/tools/dsymutil/X86/verify.test
  llvm/tools/dsymutil/BinaryHolder.cpp
  llvm/tools/dsymutil/BinaryHolder.h
  llvm/tools/dsymutil/Options.td
  llvm/tools/dsymutil/dsymutil.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89216.297496.patch
Type: text/x-patch
Size: 13564 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201012/296d8bca/attachment.bin>


More information about the llvm-commits mailing list