From 23b28703f92a1214515a8cf7148c9687d2c32a49 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 20 Dec 2018 23:47:39 +0000 Subject: [PATCH] Remove dead code. This code is no-op because of r349849. Differential Revision: https://reviews.llvm.org/D55962 llvm-svn: 349859 --- lld/ELF/SymbolTable.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lld/ELF/SymbolTable.cpp b/lld/ELF/SymbolTable.cpp index 2e8759b86303..ba746375e3eb 100644 --- a/lld/ELF/SymbolTable.cpp +++ b/lld/ELF/SymbolTable.cpp @@ -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(S)) - SS->getFile().IsNeeded = true; - if (S->isLazy()) { // An undefined weak will not fetch archive members. See comment on Lazy in // Symbols.h for the details.