[DWARF Verifier] Add helper function to dump DIEs. [NFC]
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 19 Sep 2018 08:08:13 +0000 (08:08 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 19 Sep 2018 08:08:13 +0000 (08:08 +0000)
commitf1f3e7377cd4baf5f23dd852492d715e0d290550
tree00873cd29bea05d64060d3c452e857f55fcf943b
parentb81bcb3a3ee9cd2afdacd19ce99d8e86a42dba9f
[DWARF Verifier] Add helper function to dump DIEs. [NFC]

It's pretty common for the verifier to dump the relevant DIE when it
finds an issue. This tends to be relatively verbose and error prone
because we have to pass the DIDumpOptions to the DIE's dump method. This
patch adds a helper function to the verifier to make this easier.

llvm-svn: 342526
llvm/include/llvm/DebugInfo/DWARF/DWARFVerifier.h
llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp