Skip to content

Commit 23b2870

Browse files
committedDec 20, 2018
Remove dead code.
This code is no-op because of r349849. Differential Revision: https://reviews.llvm.org/D55962 llvm-svn: 349859
1 parent 6679bc1 commit 23b2870

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed
 

Diff for: ‎lld/ELF/SymbolTable.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,6 @@ Symbol *SymbolTable::addUndefined(StringRef Name, uint8_t Binding,
251251
if (S->isShared() || S->isLazy() || (S->isUndefined() && Binding != STB_WEAK))
252252
S->Binding = Binding;
253253

254-
if (!Config->GcSections && Binding != STB_WEAK)
255-
if (auto *SS = dyn_cast<SharedSymbol>(S))
256-
SS->getFile<ELFT>().IsNeeded = true;
257-
258254
if (S->isLazy()) {
259255
// An undefined weak will not fetch archive members. See comment on Lazy in
260256
// Symbols.h for the details.

0 commit comments

Comments
 (0)
Please sign in to comment.