[lld] [lld-macho] icf objc stubs (PR #79730)

Jez Ng via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 29 16:51:18 PST 2024


================
@@ -894,8 +940,22 @@ void ObjCStubsSection::writeTo(uint8_t *buf) const {
   uint64_t stubOffset = 0;
   for (size_t i = 0, n = symbols.size(); i < n; ++i) {
     Defined *sym = symbols[i];
+    uint64_t selBaseAddr;
+    uint64_t selIndex;
+
+    auto methname = getMethName(sym);
----------------
int3 wrote:

nit: we should standardize on capitalization... if it's `selref` and not `selRef`, then this should be `methname` not `methName`

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


More information about the llvm-commits mailing list