Use continue to reduce indentation. NFC.

llvm-svn: 244480
This commit is contained in:
Rafael Espindola 2015-08-10 18:57:42 +00:00
parent c56a9132d0
commit fc2b6fa31c
1 changed files with 17 additions and 15 deletions

View File

@ -369,9 +369,13 @@ PrinterContext<ET>::FindExceptionTable(unsigned IndexSectionIndex,
/// table.
for (const Elf_Shdr &Sec : ELF->sections()) {
if (Sec.sh_type == ELF::SHT_REL && Sec.sh_info == IndexSectionIndex) {
if (Sec.sh_type != ELF::SHT_REL || Sec.sh_info != IndexSectionIndex)
continue;
for (const Elf_Rel &R : ELF->rels(&Sec)) {
if (R.r_offset == static_cast<unsigned>(IndexTableOffset)) {
if (R.r_offset != static_cast<unsigned>(IndexTableOffset))
continue;
typename object::ELFFile<ET>::Elf_Rela RelA;
RelA.r_offset = R.r_offset;
RelA.r_info = R.r_info;
@ -386,8 +390,6 @@ PrinterContext<ET>::FindExceptionTable(unsigned IndexSectionIndex,
return *Ret;
}
}
}
}
return nullptr;
}