[all-commits] [llvm/llvm-project] c416e4: [lld-macho] Add support for non-lazy categories to...

alx32 via All-commits all-commits at lists.llvm.org
Thu May 9 06:47:58 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c416e43571cca78dea3ee75b2a9fec944c0c65a1
      https://github.com/llvm/llvm-project/commit/c416e43571cca78dea3ee75b2a9fec944c0c65a1
  Author: alx32 <103613512+alx32 at users.noreply.github.com>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M lld/MachO/ObjC.cpp
    M lld/test/MachO/objc-category-merging-complete-test.s

  Log Message:
  -----------
  [lld-macho] Add support for non-lazy categories to ObjC category merger (#91548)

In ObjC we can have categories that define a `+load` method that is
called when the category is loaded. In such cases, we shouldn't optimize
the category. These categories are present in the `__objc_nlcatlist`
section. So we scan these section for such categories and ignore them
from optimization.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list