This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Add unit tests for DWARFListTableHeader::length().
ClosedPublic

Authored by ikudrin on Jul 13 2020, 6:07 AM.

Details

Summary

This adds unit tests to check the expected behavior of the method in case the unit length field is truncated.

Diff Detail

Event Timeline

ikudrin created this revision.Jul 13 2020, 6:07 AM
dblaikie accepted this revision.Jul 13 2020, 4:48 PM

Looks good (one minor comment for a comment) - thanks!

llvm/unittests/DebugInfo/DWARF/DWARFListTableTest.cpp
19

maybe a comment "truncated DWARF32 length"?

This revision is now accepted and ready to land.Jul 13 2020, 4:48 PM
jhenderson accepted this revision.Jul 14 2020, 12:46 AM

LGTM, with @dblaikie's suggestion.

This revision was automatically updated to reflect the committed changes.
ikudrin marked an inline comment as done.