From dcddfb63cd7a53541b2cd453244611c2cf6c48a9 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Wed, 8 Jun 2016 12:04:59 +0000 Subject: [PATCH] [ELF] Simplify shouldMerge() result calculation. NFC. llvm-svn: 272131 --- lld/ELF/InputFiles.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index b61f37944355..2f34377fab1f 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -179,10 +179,7 @@ template static bool shouldMerge(const typename ELFT::Shdr &Sec) { if (Flags & SHF_STRINGS) return true; - if (Sec.sh_addralign > EntSize) - return false; - - return true; + return Sec.sh_addralign <= EntSize; } template