[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
Mon Dec 2 22:14:59 PST 2024
================
@@ -427,7 +430,7 @@ class ELFJITLinker_ppc64 : public JITLinker<ELFJITLinker_ppc64<Endianness>> {
"TOCSymbol should not be defined at this point");
for (Symbol *Sym : G.external_symbols()) {
- if (Sym->getName() == ELFTOCSymbolName) {
+ if (Sym->hasName() && *Sym->getName() == ELFTOCSymbolName) {
----------------
lhames wrote:
Ditto here: `Sym->getName() == ELFTOCSymbolName`.
https://github.com/llvm/llvm-project/pull/115796
More information about the llvm-commits
mailing list