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

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 22:35:37 PST 2024


================
@@ -103,7 +107,7 @@ class ELFJITLinker_aarch64 : public JITLinker<ELFJITLinker_aarch64> {
     // we just need to point the GOT symbol at some address in this graph.
     if (!GOTSymbol) {
       for (auto *Sym : G.external_symbols()) {
-        if (Sym->getName() == ELFGOTSymbolName) {
+        if (*Sym->getName() == ELFGOTSymbolName) {
----------------
lhames wrote:

Can this just use `(Sym->getName() == InternedGOTSymbolName)` ?

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


More information about the llvm-commits mailing list