[lld] r266302 - Reduce expression to single line. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 14 06:47:05 PDT 2016
Author: grimar
Date: Thu Apr 14 08:47:04 2016
New Revision: 266302
URL: http://llvm.org/viewvc/llvm-project?rev=266302&view=rev
Log:
Reduce expression to single line. NFC.
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=266302&r1=266301&r2=266302&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Apr 14 08:47:04 2016
@@ -977,9 +977,7 @@ static bool includeInDynsym(const Symbol
uint8_t V = B.getVisibility();
if (V != STV_DEFAULT && V != STV_PROTECTED)
return false;
- if (Config->ExportDynamic || Config->Shared)
- return true;
- return false;
+ return Config->ExportDynamic || Config->Shared;
}
// This class knows how to create an output section for a given
More information about the llvm-commits
mailing list