[lld] [ELF] Fix unnecessary inclusion of unreferenced provide symbols (PR #84512)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 25 12:24:12 PDT 2024
================
@@ -1570,7 +1578,10 @@ Expr ScriptParser::readPrimary() {
tok = unquote(tok);
else if (!isValidSymbolName(tok))
setError("malformed number: " + tok);
- script->referencedSymbols.push_back(tok);
+ if (activeProvideSym)
+ script->provideMap[activeProvideSym.value()].push_back(tok);
----------------
partaror wrote:
Done.
https://github.com/llvm/llvm-project/pull/84512
More information about the llvm-commits
mailing list