[PATCH] D147230: [lld-macho] Don't emit spurious dupe method warnings for +load methods
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 30 06:12:57 PDT 2023
int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added projects: lld-macho, All.
int3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
+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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147230
Files:
lld/MachO/ObjC.cpp
lld/test/MachO/objc-category-conflicts.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147230.509642.patch
Type: text/x-patch
Size: 6240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230330/792431a9/attachment.bin>
More information about the llvm-commits
mailing list