llvm.org GIT mirror llvm / c10ed4a
[yaml2obj] - Make the code to match the LLVM style. NFCI. This renames the variables to uppercase and removes use of `auto` for unobvious type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359298 91177308-0d34-0410-b5e6-96231b3b80d8 George Rimar 5 months ago
1 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
592592 raw_ostream &OS =
593593 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign);
594594
595 for (auto member : Section.Members) {
596 unsigned int sectionIndex = 0;
597 if (member.sectionNameOrType == "GRP_COMDAT")
598 sectionIndex = llvm::ELF::GRP_COMDAT;
599 else if (!convertSectionIndex(SN2I, Section.Name, member.sectionNameOrType,
600 sectionIndex))
595 for (const ELFYAML::SectionOrType &Member : Section.Members) {
596 unsigned int SectionIndex = 0;
597 if (Member.sectionNameOrType == "GRP_COMDAT")
598 SectionIndex = llvm::ELF::GRP_COMDAT;
599 else if (!convertSectionIndex(SN2I, Section.Name, Member.sectionNameOrType,
600 SectionIndex))
601601 return false;
602 support::endian::write(OS, sectionIndex, ELFT::TargetEndianness);
602 support::endian::write(OS, SectionIndex, ELFT::TargetEndianness);
603603 }
604604 return true;
605605 }