Skip to content

Commit aedc81b

Browse files
committed
[ELF] Remove unneeded sym->inDynamicList check
Follow-up to d31fb26
1 parent 6c062af commit aedc81b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lld/ELF/LTO.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,8 @@ void BitcodeCompiler::add(BitcodeFile &f) {
254254
usedStartStop.count(objSym.getSectionName());
255255
// Identify symbols exported dynamically, and that therefore could be
256256
// referenced by a shared library not visible to the linker.
257-
r.ExportDynamic =
258-
sym->computeBinding(ctx) != STB_LOCAL &&
259-
(ctx.arg.exportDynamic || sym->exportDynamic || sym->inDynamicList);
257+
r.ExportDynamic = sym->computeBinding(ctx) != STB_LOCAL &&
258+
(ctx.arg.exportDynamic || sym->exportDynamic);
260259
const auto *dr = dyn_cast<Defined>(sym);
261260
r.FinalDefinitionInLinkageUnit =
262261
(isExec || sym->visibility() != STV_DEFAULT) && dr &&

0 commit comments

Comments
 (0)