[lld] [lld-macho] icf objc stubs (PR #79730)
Kyungwoo Lee via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 23:48:54 PST 2024
================
@@ -332,10 +333,17 @@ class ObjCStubsSection final : public SyntheticSection {
void setUp();
static constexpr llvm::StringLiteral symbolPrefix = "_objc_msgSend$";
+ static bool isObjCStubSymbol(Symbol *sym);
+ static StringRef getMethName(Symbol *sym);
private:
std::vector<Defined *> symbols;
- std::vector<uint32_t> offsets;
+ // Existing mapping from methname to selref (0 index is assumed).
+ llvm::StringMap<InputSection *> methnameToselref;
----------------
kyulee-com wrote:
Renamed the map name and type.
https://github.com/llvm/llvm-project/pull/79730
More information about the llvm-commits
mailing list