This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Don't emit spurious dupe method warnings for +load methods
ClosedPublic

Authored by int3 on Mar 30 2023, 6:12 AM.

Details

Summary

+load methods are static initializers and treated specially by the
runtime: all +load methods for a class & its categories are called when
loading that class, unlike regular methods where only one definition
will get called per message. Thus, there is no need to check for
duplicates.

Diff Detail

Event Timeline

int3 created this revision.Mar 30 2023, 6:12 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 30 2023, 6:12 AM
int3 requested review of this revision.Mar 30 2023, 6:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2023, 6:12 AM
oontvoo accepted this revision.Mar 30 2023, 11:10 AM
oontvoo added a subscriber: oontvoo.

Thanks!

This revision is now accepted and ready to land.Mar 30 2023, 11:10 AM
This revision was landed with ongoing or failed builds.Mar 30 2023, 11:34 AM
This revision was automatically updated to reflect the committed changes.