Simplify. NFC.

llvm-svn: 258796
This commit is contained in:
Rui Ueyama 2016-01-26 07:17:29 +00:00
parent 3ae28a4758
commit 231b5e23c5
1 changed files with 3 additions and 5 deletions

View File

@ -356,11 +356,9 @@ void Writer<ELFT>::scanRelocs(
}
template <class ELFT> void Writer<ELFT>::scanRelocs(InputSection<ELFT> &C) {
if (!(C.getSectionHdr()->sh_flags & SHF_ALLOC))
return;
for (const Elf_Shdr *RelSec : C.RelocSections)
scanRelocs(C, *RelSec);
if (C.getSectionHdr()->sh_flags & SHF_ALLOC)
for (const Elf_Shdr *RelSec : C.RelocSections)
scanRelocs(C, *RelSec);
}
template <class ELFT>