[lld] [ELF] Reuse SHT_GROUP selection verdicts in initializeSections. NFC (PR #207437)

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 02:53:11 PDT 2026


https://github.com/smithp35 approved this pull request.

LGTM.

I did think about whether a binary search of keptGroups would be worthwhile, even if only for objects with a large amount of groups (something LTO or ld -r like). However as group sections have to precede the sections they describe, and the index is starting from the last group, I don't think there's much risk of a worst case. 

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


More information about the llvm-commits mailing list