From 390aaca662b4e22be92116cfaee690988be56820 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 2 Nov 2016 14:11:05 +0000 Subject: [PATCH] Update for llvm change. llvm-svn: 285808 --- lld/ELF/InputFiles.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index ee9eff72bf97..5850b30ca0d9 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -291,7 +291,7 @@ void elf::ObjectFile::initializeSections( unsigned I = -1; const ELFFile &Obj = this->ELFObj; StringRef SectionStringTable = check(Obj.getSectionStringTable()); - for (const Elf_Shdr &Sec : Obj.sections()) { + for (const Elf_Shdr &Sec : check(Obj.sections())) { ++I; if (Sections[I] == &InputSection::Discarded) continue; @@ -578,7 +578,7 @@ template void SharedFile::parseSoName() { const Elf_Shdr *DynamicSec = nullptr; const ELFFile Obj = this->ELFObj; - for (const Elf_Shdr &Sec : Obj.sections()) { + for (const Elf_Shdr &Sec : check(Obj.sections())) { switch (Sec.sh_type) { default: continue; @@ -891,7 +891,7 @@ template std::vector LazyObjectFile::getElfSymbols() { typedef typename ELFT::SymRange Elf_Sym_Range; const ELFFile Obj = createELFObj(this->MB); - for (const Elf_Shdr &Sec : Obj.sections()) { + for (const Elf_Shdr &Sec : check(Obj.sections())) { if (Sec.sh_type != SHT_SYMTAB) continue; Elf_Sym_Range Syms = Obj.symbols(&Sec); -- 2.34.1