[lld] r319395 - Remove unused condition.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 17:08:09 PST 2017


Author: ruiu
Date: Wed Nov 29 17:08:09 2017
New Revision: 319395

URL: http://llvm.org/viewvc/llvm-project?rev=319395&view=rev
Log:
Remove unused condition.

Looks like all tests pass without this `isLocal()`.

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

Modified:
    lld/trunk/ELF/Symbols.cpp

Modified: lld/trunk/ELF/Symbols.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.cpp?rev=319395&r1=319394&r2=319395&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.cpp (original)
+++ lld/trunk/ELF/Symbols.cpp Wed Nov 29 17:08:09 2017
@@ -120,7 +120,7 @@ static uint64_t getSymVA(const Symbol &S
 // Returns true if this is a weak undefined symbol.
 bool Symbol::isUndefWeak() const {
   // See comment on Lazy in Symbols.h for the details.
-  return !isLocal() && isWeak() && (isUndefined() || isLazy());
+  return isWeak() && (isUndefined() || isLazy());
 }
 
 uint64_t Symbol::getVA(int64_t Addend) const {




More information about the llvm-commits mailing list