[PATCH] D55962: Remove dead code.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 20 15:51:18 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL349859: Remove dead code. (authored by ruiu, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D55962?vs=179174&id=179188#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55962/new/

https://reviews.llvm.org/D55962

Files:
  lld/trunk/ELF/SymbolTable.cpp


Index: lld/trunk/ELF/SymbolTable.cpp
===================================================================
--- lld/trunk/ELF/SymbolTable.cpp
+++ lld/trunk/ELF/SymbolTable.cpp
@@ -251,10 +251,6 @@
   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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55962.179188.patch
Type: text/x-patch
Size: 587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181220/a4872455/attachment.bin>


More information about the llvm-commits mailing list