diff options
| author | George Rimar <grimar@accesssoftek.com> | 2019-04-26 12:20:51 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2019-04-26 12:20:51 +0000 |
| commit | fb7780a41f75bada2d119e53b4d3ee24c938a596 (patch) | |
| tree | 1ffceed829fac26e4d63c721ddb1dcc7743d003d | |
| parent | da1b3abad6bba11fffe6a9e3bddaf70342f60199 (diff) | |
| download | bcm5719-llvm-fb7780a41f75bada2d119e53b4d3ee24c938a596.tar.gz bcm5719-llvm-fb7780a41f75bada2d119e53b4d3ee24c938a596.zip | |
[yaml2obj] - Make the code to match the LLVM style. NFCI.
This renames the variables to uppercase and
removes use of `auto` for unobvious type.
llvm-svn: 359298
| -rw-r--r-- | llvm/tools/yaml2obj/yaml2elf.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/tools/yaml2obj/yaml2elf.cpp b/llvm/tools/yaml2obj/yaml2elf.cpp index 96761259c4e..a35a9805a2e 100644 --- a/llvm/tools/yaml2obj/yaml2elf.cpp +++ b/llvm/tools/yaml2obj/yaml2elf.cpp @@ -593,14 +593,14 @@ bool ELFState<ELFT>::writeSectionContent(Elf_Shdr &SHeader, raw_ostream &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); - for (auto member : Section.Members) { - unsigned int sectionIndex = 0; - if (member.sectionNameOrType == "GRP_COMDAT") - sectionIndex = llvm::ELF::GRP_COMDAT; - else if (!convertSectionIndex(SN2I, Section.Name, member.sectionNameOrType, - sectionIndex)) + for (const ELFYAML::SectionOrType &Member : Section.Members) { + unsigned int SectionIndex = 0; + if (Member.sectionNameOrType == "GRP_COMDAT") + SectionIndex = llvm::ELF::GRP_COMDAT; + else if (!convertSectionIndex(SN2I, Section.Name, Member.sectionNameOrType, + SectionIndex)) return false; - support::endian::write<uint32_t>(OS, sectionIndex, ELFT::TargetEndianness); + support::endian::write<uint32_t>(OS, SectionIndex, ELFT::TargetEndianness); } return true; } |

