diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-04-14 13:47:04 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-04-14 13:47:04 +0000 |
commit | 0fa18b8923642f9ea92aa2569e6ca6a98efdfc6e (patch) | |
tree | 80f350a53634f4eafa8e0e472efac97d2c38af12 | |
parent | 53a3492b712633c48bc487ae244d5984e4c60635 (diff) | |
download | bcm5719-llvm-0fa18b8923642f9ea92aa2569e6ca6a98efdfc6e.tar.gz bcm5719-llvm-0fa18b8923642f9ea92aa2569e6ca6a98efdfc6e.zip |
Reduce expression to single line. NFC.
llvm-svn: 266302
-rw-r--r-- | lld/ELF/Writer.cpp | 4 |
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 |