OSDN Git Service

[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)
commit6bae1b9b2b8ac34fb81415e1fd8824574acf3765
treea83160b03f51660c3462786abc6c66b34964e98a
parent332ba6e124b85e27a75ec50206f8d9a17257aaa0
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314426 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/DWARF/DWARFVerifier.cpp
test/tools/llvm-dwarfdump/X86/empty-CU.s [new file with mode: 0644]