This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Move ICF members from InputSection to ConcatInputSection
ClosedPublic

Authored by int3 on Jun 21 2021, 2:21 PM.

Details

Summary

icfEqClass only makes sense on ConcatInputSections since (in contrast
to literal sections) they are deduplicated as an atomic unit.

Similarly, hasPersonality and replacement don't make sense on
literal sections.

This mirrors LLD-ELF, which stores icfEqClass only on non-mergeable
sections.

Diff Detail

Event Timeline

int3 created this revision.Jun 21 2021, 2:21 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jfb. · View Herald Transcript
int3 requested review of this revision.Jun 21 2021, 2:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2021, 2:21 PM
gkm accepted this revision.Jun 24 2021, 2:47 PM

Bueno!

lld/MachO/ICF.cpp
138
212
lld/MachO/InputSection.cpp
65–67
lld/MachO/UnwindInfoSection.cpp
156–158
lld/MachO/Writer.cpp
970–976
This revision is now accepted and ready to land.Jun 24 2021, 2:47 PM
int3 updated this revision to Diff 354415.Jun 24 2021, 7:02 PM
int3 marked 4 inline comments as done.

address comments

This revision was landed with ongoing or failed builds.Jun 24 2021, 7:23 PM
This revision was automatically updated to reflect the committed changes.