mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 06:06:34 +08:00
[ELF] Simplify shouldMerge() result calculation. NFC.
llvm-svn: 272131
This commit is contained in:
@@ -179,10 +179,7 @@ template <class ELFT> 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 <class ELFT>
|
||||
|
||||
Reference in New Issue
Block a user