[dwarfdump] Verify compatibility of attribute TAGs.
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 21 Sep 2018 07:49:29 +0000 (07:49 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 21 Sep 2018 07:49:29 +0000 (07:49 +0000)
commit7ef2c2021e2ab03c96296066666c8c01372f435c
treeb1efd315df620cd99aa640b80a5b01cbfca877e7
parentb6eb21c29f5d5f062f47d5a736353436e89d7653
[dwarfdump] Verify compatibility of attribute TAGs.

Verify that DW_AT_specification and DW_AT_abstract_origin reference a
DIE with a compatible tag.

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

llvm-svn: 342712
llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
llvm/test/tools/llvm-dwarfdump/X86/verify_compatible_tags.s [new file with mode: 0644]