[lld] [lld][MachO] Tail merge strings (PR #161262)

Kyungwoo Lee via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 1 00:12:09 PDT 2025


================
@@ -1776,8 +1817,24 @@ void DeduplicatedCStringSection::finalizeContents() {
     // only need to assign the offset.
     piece.outSecOff = it->second;
   }
-  for (CStringInputSection *isec : inputs)
+  for (CStringInputSection *isec : inputs) {
----------------
kyulee-com wrote:

Can you add some comment on this loop? It appears the previous loop layouts the substrings while the loop resolves the substring offsets.

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


More information about the llvm-commits mailing list