This is an archive of the discontinued LLVM Phabricator instance.

[llvm-gsymutil][NFC] refactor AddressRange&AddresRanges structures.
ClosedPublic

Authored by avl on Apr 24 2022, 1:15 PM.

Details

Summary

llvm-gsymutil has an implementation of AddressRange and AddressRanges
classes. That implementation might be reused in other parts of llvm.
This patch moves AddressRange and AddressRanges classes into llvm/ADT.

Diff Detail

Event Timeline

avl created this revision.Apr 24 2022, 1:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2022, 1:15 PM
avl requested review of this revision.Apr 24 2022, 1:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2022, 1:15 PM
clayborg accepted this revision.Apr 25 2022, 10:35 AM

Very nice! Thanks for taking the time.

This revision is now accepted and ready to land.Apr 25 2022, 10:35 AM
avl added a comment.Apr 26 2022, 1:38 AM

Thank you for the review!

This revision was landed with ongoing or failed builds.Apr 26 2022, 2:01 AM
This revision was automatically updated to reflect the committed changes.
RKSimon added a subscriber: RKSimon.May 2 2022, 8:30 AM
RKSimon added inline comments.
llvm/lib/Support/AddressRanges.cpp
24

@avl I'm seeing static analyzer warnings about using signed (negative) values into It2[] - maybe add a static cast?

avl added inline comments.May 3 2022, 10:20 PM
llvm/lib/Support/AddressRanges.cpp
24

Thanks! Will add cast.

llvm/lib/DebugInfo/GSYM/InlineInfo.cpp