[lld] r255282 - Simplify an expression. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 10 11:13:08 PST 2015
Author: ruiu
Date: Thu Dec 10 13:13:08 2015
New Revision: 255282
URL: http://llvm.org/viewvc/llvm-project?rev=255282&view=rev
Log:
Simplify an expression. 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=255282&r1=255281&r2=255282&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Dec 10 13:13:08 2015
@@ -362,9 +362,11 @@ template <class ELFT> static bool isRelr
typename OutputSectionBase<ELFT>::uintX_t Flags = Sec->getFlags();
if (!(Flags & SHF_ALLOC) || !(Flags & SHF_WRITE))
return false;
+ if (Flags & SHF_TLS)
+ return true;
uint32_t Type = Sec->getType();
- if ((Flags & SHF_TLS) || (Type == SHT_INIT_ARRAY || Type == SHT_FINI_ARRAY ||
- Type == SHT_PREINIT_ARRAY))
+ if (Type == SHT_INIT_ARRAY || Type == SHT_FINI_ARRAY ||
+ Type == SHT_PREINIT_ARRAY)
return true;
if (Sec == Out<ELFT>::GotPlt)
return Config->ZNow;
More information about the llvm-commits
mailing list