Skip to content

Commit

Permalink
Remove dead code.
Browse files Browse the repository at this point in the history
This code is no-op because of r349849.

Differential Revision: https://reviews.llvm.org/D55962

llvm-svn: 349859
  • Loading branch information
rui314 committed Dec 20, 2018
1 parent 6679bc1 commit 23b2870
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lld/ELF/SymbolTable.cpp
Expand Up @@ -251,10 +251,6 @@ Symbol *SymbolTable::addUndefined(StringRef Name, uint8_t Binding,
if (S->isShared() || S->isLazy() || (S->isUndefined() && Binding != STB_WEAK))
S->Binding = Binding;

if (!Config->GcSections && Binding != STB_WEAK)
if (auto *SS = dyn_cast<SharedSymbol>(S))
SS->getFile<ELFT>().IsNeeded = true;

if (S->isLazy()) {
// An undefined weak will not fetch archive members. See comment on Lazy in
// Symbols.h for the details.
Expand Down

0 comments on commit 23b2870

Please sign in to comment.