[lld] [lld-macho] Category Merger: add support for addrsig references (PR #90903)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 3 15:16:53 PDT 2024
================
@@ -478,6 +482,8 @@ class ObjcCategoryMerger {
std::vector<ConcatInputSection *> &allInputSections;
// Map of base class Symbol to list of InfoInputCategory's for it
DenseMap<const Symbol *, std::vector<InfoInputCategory>> categoryMap;
+ // Set for tracking InputSection erased via eraseISec
+ std::unordered_set<InputSection *> erasedIsecs;
----------------
alx32 wrote:
I see the point in set vs sorted array, but here a hashset is the better approach (`unordered_set`). It has better lookup time than binary search and we need that looking up lots of reloc's.
https://github.com/llvm/llvm-project/pull/90903
More information about the llvm-commits
mailing list