This is an archive of the discontinued LLVM Phabricator instance.

[dwarfdump] Verify that CUs have a unit DIE.
ClosedPublic

Authored by JDevlieghere on Sep 28 2017, 8:16 AM.

Details

Summary

This patch adds a check to the DWARF verifier to detect CUs without a
unit DIE.

Diff Detail

Repository
rL LLVM

Event Timeline

JDevlieghere created this revision.Sep 28 2017, 8:16 AM
aprantl accepted this revision.Sep 28 2017, 8:32 AM
aprantl added inline comments.
lib/DebugInfo/DWARF/DWARFVerifier.cpp
186 ↗(On Diff #116997)

I think we always call this "error: " in lowercase to match compiler error formatting.

Side note: I think it would be good to introduce something similar to the error() function in tools/dsymutil/DwarfLinker.cpp so we don't duplicate the "error: " and "warning: " strings a hundred times.

This revision is now accepted and ready to land.Sep 28 2017, 8:32 AM

opportunity for an NFC cleanup.

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

opportunity for an NFC cleanup.

I completely agree! Please see D38368