This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objcopy][ELF][NFC] Remove unneeded methods of Object
ClosedPublic

Authored by ikudrin on Aug 6 2021, 8:22 AM.

Details

Summary

The patch removes mutable accessor methods for sections and segments. As for now, const variants of them are not used because all callers have mutable access to an instance of Object. On the other hand, they do not actually modify the sets, so it looks better to keep only const ones.

Diff Detail

Event Timeline

ikudrin created this revision.Aug 6 2021, 8:22 AM
ikudrin requested review of this revision.Aug 6 2021, 8:22 AM
MaskRay accepted this revision.Aug 6 2021, 9:32 AM

Thanks!

This revision is now accepted and ready to land.Aug 6 2021, 9:32 AM
This revision was automatically updated to reflect the committed changes.