[PATCH] D38453: [dwarfdump] Verify that unit type matches root DIE

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 2 04:40:20 PDT 2017


JDevlieghere created this revision.

This patch adds two new verifications:

- Check that the root DIE of a CU is actually a valid unit DIE. (based on its tag)
- For DWARF5 which contains a unit type int he CU header, check that this matches the type of the unit DIE.


Repository:
  rL LLVM

https://reviews.llvm.org/D38453

Files:
  include/llvm/DebugInfo/DWARF/DWARFUnit.h
  include/llvm/DebugInfo/DWARF/DWARFVerifier.h
  lib/DebugInfo/DWARF/DWARFVerifier.cpp
  test/DebugInfo/dwarfdump-header.test
  test/tools/llvm-dwarfdump/X86/empty-CU.s
  test/tools/llvm-dwarfdump/X86/verify_debug_info.s
  test/tools/llvm-dwarfdump/X86/verify_unit_header_chain.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38453.117325.patch
Type: text/x-patch
Size: 7015 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171002/a7489a18/attachment.bin>


More information about the llvm-commits mailing list