[lld] [llvm] [lld-macho] Implement ObjC category merging (-objc_category_merging) (PR #82928)

via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 10 13:18:20 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff dbca8aa1472b9140a68918b2615519dc7dad593f 8992adcb049131c62fa0c46ecc33baf23f19e305 -- lld/MachO/Driver.cpp lld/MachO/InputSection.h lld/MachO/ObjC.cpp lld/MachO/ObjC.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lld/MachO/ObjC.cpp b/lld/MachO/ObjC.cpp
index 2d1d02062f..119134ddc4 100644
--- a/lld/MachO/ObjC.cpp
+++ b/lld/MachO/ObjC.cpp
@@ -903,7 +903,9 @@ ObjcCategoryMerger::emitCatListEntrySec(const std::string &forCateogryName,
   return catListSym;
 }
 
-// Here we generate the main category body and link the name and base class into it. We don't link any other info yet like the protocol and class/instance methods/props.
+// Here we generate the main category body and link the name and base class into
+// it. We don't link any other info yet like the protocol and class/instance
+// methods/props.
 Defined *ObjcCategoryMerger::emitCategoryBody(const std::string &name,
                                               const Defined *nameSym,
                                               const Symbol *baseClassSym,

``````````

</details>


https://github.com/llvm/llvm-project/pull/82928


More information about the llvm-commits mailing list