[lld] r349859 - Remove dead code.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 20 15:47:39 PST 2018
Author: ruiu
Date: Thu Dec 20 15:47:39 2018
New Revision: 349859
URL: http://llvm.org/viewvc/llvm-project?rev=349859&view=rev
Log:
Remove dead code.
This code is no-op because of r349849.
Differential Revision: https://reviews.llvm.org/D55962
Modified:
lld/trunk/ELF/SymbolTable.cpp
Modified: lld/trunk/ELF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.cpp?rev=349859&r1=349858&r2=349859&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Thu Dec 20 15:47:39 2018
@@ -251,10 +251,6 @@ Symbol *SymbolTable::addUndefined(String
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.
More information about the llvm-commits
mailing list