[ELF] - Simplify. NFC.

llvm-svn: 316002
This commit is contained in:
George Rimar 2017-10-17 14:31:29 +00:00
parent 23604a8399
commit d30bd1321f
1 changed files with 4 additions and 5 deletions

View File

@ -930,11 +930,10 @@ template <class ELFT> void Writer<ELFT>::setReservedSymbolSections() {
if (OutputSections[I] == LastRW->FirstSec)
break;
for (; I < OutputSections.size(); ++I) {
if (OutputSections[I]->Type != SHT_NOBITS)
continue;
break;
}
for (; I < OutputSections.size(); ++I)
if (OutputSections[I]->Type == SHT_NOBITS)
break;
if (ElfSym::Edata1)
ElfSym::Edata1->Section = OutputSections[I - 1];
if (ElfSym::Edata2)