[lld] r312808 - Simplify. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 8 11:23:26 PDT 2017


Author: rafael
Date: Fri Sep  8 11:23:25 2017
New Revision: 312808

URL: http://llvm.org/viewvc/llvm-project?rev=312808&view=rev
Log:
Simplify. NFC.

We handled all undefined symbols before this.

Modified:
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=312808&r1=312807&r2=312808&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Fri Sep  8 11:23:25 2017
@@ -1252,7 +1252,7 @@ static bool computeIsPreemptible(const S
 
   // -Bsymbolic means that definitions are not preempted.
   if (Config->Bsymbolic || (Config->BsymbolicFunctions && B.isFunc()))
-    return !B.isDefined();
+    return false;
   return true;
 }
 




More information about the llvm-commits mailing list