[dwarfdump] Verify that CUs have a unit DIE.
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 28 Sep 2017 15:57:50 +0000 (15:57 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 28 Sep 2017 15:57:50 +0000 (15:57 +0000)
commit35fdaa94f7fae76bb8dc905e16f2a4fcef8ed34e
tree2e5dedbb3ca26507e92109dd61f7c8cfc7a82c25
parent2ff339303ee04f1a454fe521e29f540cc09a7f63
[dwarfdump] Verify that CUs have a unit DIE.

This patch adds a check to the DWARF verifier to detect CUs without a
unit DIE.

Differential revision: https://reviews.llvm.org/D38363

llvm-svn: 314426
llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
llvm/test/tools/llvm-dwarfdump/X86/empty-CU.s [new file with mode: 0644]