[lld] [lld][WebAssembly] Improve merging multiple occurrences of an undefined symbol (PR #178550)
Derek Schuff via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 29 09:18:33 PST 2026
================
@@ -786,12 +787,13 @@ Symbol *SymbolTable::addUndefinedTag(StringRef name,
lazy->extract();
else if (s->isDefined())
checkTagType(s, file, sig);
- else if (s->isWeak())
- s->flags = flags;
+ else
+ updateExistingUndefined(s, flags, file);
----------------
dschuff wrote:
Kind of sad that these 3-4 functions are basically identical. I wonder if they could be templatized? `replaceSymbol` is already a template, I guess `checkTagType` et al. would need to be too.
https://github.com/llvm/llvm-project/pull/178550
More information about the llvm-commits
mailing list