From: George Rimar Date: Wed, 20 Feb 2019 14:01:02 +0000 (+0000) Subject: [yaml2elf] - Rename a variable. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2ecb2a90f8d0b7fcca1b9b4c14c2e9fa69105a5;p=llvm [yaml2elf] - Rename a variable. NFC. Was suggested during review of D58441. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354463 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/yaml2obj/yaml2elf.cpp b/tools/yaml2obj/yaml2elf.cpp index 0aaeb0b5c61..4e51744991e 100644 --- a/tools/yaml2obj/yaml2elf.cpp +++ b/tools/yaml2obj/yaml2elf.cpp @@ -577,8 +577,8 @@ bool ELFState::writeSectionContent(Elf_Shdr &SHeader, ContiguousBlobAccumulator &CBA) { raw_ostream &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); - for (uint16_t V : Section.Entries) - support::endian::write(OS, V, ELFT::TargetEndianness); + for (uint16_t Version : Section.Entries) + support::endian::write(OS, Version, ELFT::TargetEndianness); SHeader.sh_entsize = 2; SHeader.sh_size = Section.Entries.size() * SHeader.sh_entsize;