This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objcopy][MachO] Change the storage of sections.
ClosedPublic

Authored by alexander-shaposhnikov on Feb 20 2020, 9:11 PM.

Details

Summary

In this diff we change the storage of a section to unique_ptr to avoid pointer invalidation in case of adding/removing new sections.
This refactoring is factored out from D71647.

Test plan: make check-all

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: abrachet. · View Herald Transcript
alexander-shaposhnikov edited the summary of this revision. (Show Details)Feb 20 2020, 9:12 PM
MaskRay accepted this revision.Feb 20 2020, 9:17 PM
This revision is now accepted and ready to land.Feb 20 2020, 9:17 PM
This revision was automatically updated to reflect the committed changes.