[PATCH] D48857: Also search BitcodeFiles for exclude-lib symbols
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 2 16:49:24 PDT 2018
pcc added a comment.
Test case?
================
Comment at: ELF/Driver.cpp:1164-1168
+ if (!File->ArchiveName.empty())
+ if (All || Libs.count(path::filename(File->ArchiveName)))
+ for (Symbol *Sym : File->getSymbols())
+ if (!Sym->isLocal() && Sym->File == File)
+ Sym->VersionId = VER_NDX_LOCAL;
----------------
Move this code into a lambda and call it from both places.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D48857
More information about the llvm-commits
mailing list