[lld] r285808 - Update for llvm change.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 2 07:11:05 PDT 2016
Author: rafael
Date: Wed Nov 2 09:11:05 2016
New Revision: 285808
URL: http://llvm.org/viewvc/llvm-project?rev=285808&view=rev
Log:
Update for llvm change.
Modified:
lld/trunk/ELF/InputFiles.cpp
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=285808&r1=285807&r2=285808&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Wed Nov 2 09:11:05 2016
@@ -291,7 +291,7 @@ void elf::ObjectFile<ELFT>::initializeSe
unsigned I = -1;
const ELFFile<ELFT> &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<ELFT>::Discarded)
continue;
@@ -578,7 +578,7 @@ template <class ELFT> void SharedFile<EL
const Elf_Shdr *DynamicSec = nullptr;
const ELFFile<ELFT> 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 <class ELFT> std::vector<String
typedef typename ELFT::SymRange Elf_Sym_Range;
const ELFFile<ELFT> Obj = createELFObj<ELFT>(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);
More information about the llvm-commits
mailing list