[yaml2elf] - Rename a variable. NFC.

Was suggested during review of D58441.

llvm-svn: 354463
This commit is contained in:
George Rimar 2019-02-20 14:01:02 +00:00
parent d063c7d89b
commit dac37fb38d
1 changed files with 2 additions and 2 deletions

View File

@ -577,8 +577,8 @@ bool ELFState<ELFT>::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<uint16_t>(OS, V, ELFT::TargetEndianness);
for (uint16_t Version : Section.Entries)
support::endian::write<uint16_t>(OS, Version, ELFT::TargetEndianness);
SHeader.sh_entsize = 2;
SHeader.sh_size = Section.Entries.size() * SHeader.sh_entsize;