This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho][nfc] InputSections don't need to track their total # of callsites
ClosedPublic

Authored by int3 on Dec 10 2021, 10:28 AM.

Details

Summary

... only whether they have more than zero. This simplifies the code slightly.

I've also moved the field into the ConcatInputSection subclass since it doesn't
actually get used by the other InputSections.

Diff Detail

Event Timeline

int3 created this revision.Dec 10 2021, 10:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 10 2021, 10:28 AM
int3 requested review of this revision.Dec 10 2021, 10:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 10 2021, 10:28 AM
oontvoo accepted this revision.Dec 10 2021, 4:32 PM
oontvoo added a subscriber: oontvoo.

lg

This revision is now accepted and ready to land.Dec 10 2021, 4:32 PM