[PATCH] D32821: Add DWARF verifiers to verify address ranges are correct and scoped correctly.

Greg Clayton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 3 12:02:20 PDT 2017


clayborg created this revision.

This change adds:

- Verify all DIEs with address ranges have valid ranges
- If a CU has a low/high PC or has a DW_AT_ranges, then verify that and DW_TAG_subprogram is completely contained in the CU ranges
- Keep a list of all address ranges for any DW_TAG_subprogram DIEs and verify none overlap
- verify that all DW_TAG_lexical_block and DW_TAG_inlined_subroutine address ranges are completely contained in the parent address ranges


https://reviews.llvm.org/D32821

Files:
  include/llvm/DebugInfo/DWARF/DWARFVerifier.h
  lib/DebugInfo/DWARF/DWARFVerifier.cpp
  unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32821.97703.patch
Type: text/x-patch
Size: 17254 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170503/6d791ade/attachment.bin>


More information about the llvm-commits mailing list