[PATCH] D27995: Add the ability for DWARFDie objects to get the parent DWARFDie.

Greg Clayton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 21 12:39:19 PST 2016


clayborg updated this revision to Diff 82257.
clayborg added a comment.

Fixed:

- DWARFUnit::getDIEAtIndex() to assert and not bounds check index
- Don't use getDIEAtIndex() in DWARFUnit::getParent(DWARFDebugInfoEntry *) or DWARFUnit::getSibling(DWARFDebugInfoEntry *)
- Don't test "C" in the DWARF tests as we already covered the functionality when testing "B" and "C" is just there to ensure B keeps working.


https://reviews.llvm.org/D27995

Files:
  include/llvm/DebugInfo/DWARF/DWARFDebugInfoEntry.h
  include/llvm/DebugInfo/DWARF/DWARFDie.h
  include/llvm/DebugInfo/DWARF/DWARFUnit.h
  lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp
  lib/DebugInfo/DWARF/DWARFDie.cpp
  lib/DebugInfo/DWARF/DWARFUnit.cpp
  unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27995.82257.patch
Type: text/x-patch
Size: 15375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161221/26d9a4f1/attachment.bin>


More information about the llvm-commits mailing list