[llvm] r354463 - [yaml2elf] - Rename a variable. NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 20 06:01:02 PST 2019


Author: grimar
Date: Wed Feb 20 06:01:02 2019
New Revision: 354463

URL: http://llvm.org/viewvc/llvm-project?rev=354463&view=rev
Log:
[yaml2elf] - Rename a variable. NFC.

Was suggested during review of D58441.

Modified:
    llvm/trunk/tools/yaml2obj/yaml2elf.cpp

Modified: llvm/trunk/tools/yaml2obj/yaml2elf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/yaml2obj/yaml2elf.cpp?rev=354463&r1=354462&r2=354463&view=diff
==============================================================================
--- llvm/trunk/tools/yaml2obj/yaml2elf.cpp (original)
+++ llvm/trunk/tools/yaml2obj/yaml2elf.cpp Wed Feb 20 06:01:02 2019
@@ -577,8 +577,8 @@ bool ELFState<ELFT>::writeSectionContent
                                          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;




More information about the llvm-commits mailing list