[llvm] Move a lot of symbol code to use the symbol string pool (PR #115796)

Jared Wyles via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 15:30:08 PST 2024


================
@@ -60,10 +60,10 @@ class LazyObjectLinkingLayer::RenamerPlugin
     for (auto *Sym : G.defined_symbols()) {
       if (!Sym->hasName())
         continue;
-      auto I = SymsToRename.find(Sym->getName());
+      auto I = SymsToRename.find(*Sym->getName());
       if (I == SymsToRename.end())
         continue;
-      Sym->setName(G.allocateName(*I->second));
+      Sym->setName(G.intern(G.allocateName(*I->second)));
----------------
jaredwy wrote:

Yup this was also on my list to come back to as well. 

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


More information about the llvm-commits mailing list