[PATCH] D103292: [lld-macho] Implement ICF

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 9 11:16:20 PDT 2021


int3 added inline comments.


================
Comment at: lld/MachO/InputSection.cpp:118
+    numRefs++;
+    copy->defined->isec = this;
+    copy->numRefs--;
----------------
There can be more than one symbol pointing to a given section, due to `N_ALT_ENTRY`. Perhaps another point in favor of having a separate isec-to-defined map...


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103292/new/

https://reviews.llvm.org/D103292



More information about the llvm-commits mailing list