This is an archive of the discontinued LLVM Phabricator instance.

[DWARFLinker][NFC] Remove RangesTy &getValidAddressRanges().
ClosedPublic

Authored by avl on Jul 1 2023, 1:12 PM.

Details

Summary

This patch simplifies line table generation. It removes global
array of all units ranges(RangesTy &getValidAddressRanges()).
The comment says that global array of all units ranges is necessary
to handle corner cases inside line table rows. Removing that
special handling shows that its current usage is handling of
"end of range case" which is already handled correctly
(without special handling). .debug_line tables for clang binary
built with and without this patch are equal.

Diff Detail

Event Timeline

avl created this revision.Jul 1 2023, 1:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2023, 1:12 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
avl requested review of this revision.Jul 1 2023, 1:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2023, 1:12 PM
JDevlieghere accepted this revision.Jul 3 2023, 2:26 PM

Thanks. LGTM.

This revision is now accepted and ready to land.Jul 3 2023, 2:26 PM
avl added a comment.Jul 4 2023, 4:04 AM

Thank you for the review!

This revision was landed with ongoing or failed builds.Jul 4 2023, 4:06 AM
This revision was automatically updated to reflect the committed changes.