Simplify. NFC.

llvm-svn: 267147
This commit is contained in:
Rafael Espindola 2016-04-22 11:46:28 +00:00
parent d77089e62d
commit 5221516a04
1 changed files with 2 additions and 4 deletions

View File

@ -50,12 +50,10 @@ static void forEachSuccessor(InputSection<ELFT> *Sec,
for (const Elf_Shdr *RelSec : Sec->RelocSections) {
if (RelSec->sh_type == SHT_RELA) {
for (const Elf_Rela &RI : Obj.relas(RelSec))
if (InputSectionBase<ELFT> *Succ = Sec->getRelocTarget(RI))
Fn(Succ);
Fn(Sec->getRelocTarget(RI));
} else {
for (const Elf_Rel &RI : Obj.rels(RelSec))
if (InputSectionBase<ELFT> *Succ = Sec->getRelocTarget(RI))
Fn(Succ);
Fn(Sec->getRelocTarget(RI));
}
}
}