llvm.org GIT mirror llvm / 74f42fd
[yaml2obj][ELF] Use range-based for loops. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203900 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Atanasyan 5 years ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
185185 std::vector::Elf_Sym> &Syms,
186186 unsigned SymbolBinding) {
187187 typedef typename object::ELFFile::Elf_Sym Elf_Sym;
188 for (unsigned i = 0, e = Symbols.size(); i != e; ++i) {
189 const ELFYAML::Symbol &Sym = Symbols[i];
188 for (const auto &Sym : Symbols) {
190189 Elf_Sym Symbol;
191190 zero(Symbol);
192191 if (!Sym.Name.empty())
309308 zero(SHdr);
310309 SHeaders.push_back(SHdr);
311310 }
312 for (unsigned i = 0, e = Sections.size(); i != e; ++i) {
313 const ELFYAML::Section &Sec = Sections[i];
311 for (const auto &Sec : Sections) {
314312 Elf_Shdr SHeader;
315313 zero(SHeader);
316314 SHeader.sh_name = SHStrTab.addString(Sec.Name);