[lld] r272131 - [ELF] Simplify shouldMerge() result calculation. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 8 05:05:01 PDT 2016
Author: grimar
Date: Wed Jun 8 07:04:59 2016
New Revision: 272131
URL: http://llvm.org/viewvc/llvm-project?rev=272131&view=rev
Log:
[ELF] Simplify shouldMerge() result calculation. NFC.
Modified:
lld/trunk/ELF/InputFiles.cpp
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=272131&r1=272130&r2=272131&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Wed Jun 8 07:04:59 2016
@@ -179,10 +179,7 @@ template <class ELFT> static bool should
if (Flags & SHF_STRINGS)
return true;
- if (Sec.sh_addralign > EntSize)
- return false;
-
- return true;
+ return Sec.sh_addralign <= EntSize;
}
template <class ELFT>
More information about the llvm-commits
mailing list