summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Writer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 31f8d765ae3..cb5bc4cc872 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -977,9 +977,7 @@ static bool includeInDynsym(const SymbolBody &B) {
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
OpenPOWER on IntegriCloud