This is an archive of the discontinued LLVM Phabricator instance.

Use DWARFDataExtractor::getInitialLength in debug_aranges
ClosedPublic

Authored by labath on Mar 3 2020, 8:37 AM.

Details

Summary

getInitialLength is a *DWARF*DataExtractor method so I had to "upgrade"
some DataExtractors to be able to make use of it.

Diff Detail

Event Timeline

labath created this revision.Mar 3 2020, 8:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2020, 8:37 AM
probinson accepted this revision.Mar 3 2020, 9:15 AM

Yeah, previously the only extra feature in DWARFDataExtractor was handling relocations, IIRC. DebugInfo/DWARF generally used the base DataExtractor for cases where that wasn't needed, rather than consistently using the DWARF version.

Nice tidy-up, though, LGTM.

This revision is now accepted and ready to land.Mar 3 2020, 9:15 AM
This revision was automatically updated to reflect the committed changes.