[lld] r316842 - Rename V -> Ver for readability.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 28 13:16:11 PDT 2017


Author: ruiu
Date: Sat Oct 28 13:16:11 2017
New Revision: 316842

URL: http://llvm.org/viewvc/llvm-project?rev=316842&view=rev
Log:
Rename V -> Ver for readability.

Modified:
    lld/trunk/ELF/InputFiles.cpp

Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=316842&r1=316841&r2=316842&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Sat Oct 28 13:16:11 2017
@@ -748,7 +748,7 @@ template <class ELFT> void SharedFile<EL
     // Ignore local symbols.
     if (Versym && VersymIndex == VER_NDX_LOCAL)
       continue;
-    const Elf_Verdef *V = nullptr;
+    const Elf_Verdef *Ver = nullptr;
     if (VersymIndex != VER_NDX_GLOBAL) {
       if (VersymIndex >= Verdefs.size()) {
         error("corrupt input file: version definition index " +
@@ -756,7 +756,7 @@ template <class ELFT> void SharedFile<EL
               " is out of bounds\n>>> defined in " + toString(this));
         continue;
       }
-      V = Verdefs[VersymIndex];
+      Ver = Verdefs[VersymIndex];
     }
 
     // We do not usually care about alignments of data in shared object
@@ -770,14 +770,14 @@ template <class ELFT> void SharedFile<EL
     }
 
     if (!Hidden)
-      Symtab->addShared(Name, this, Sym, Alignment, V);
+      Symtab->addShared(Name, this, Sym, Alignment, Ver);
 
     // Also add the symbol with the versioned name to handle undefined symbols
     // with explicit versions.
-    if (V) {
-      StringRef VerName = this->StringTable.data() + V->getAux()->vda_name;
+    if (Ver) {
+      StringRef VerName = this->StringTable.data() + Ver->getAux()->vda_name;
       Name = Saver.save(Name + "@" + VerName);
-      Symtab->addShared(Name, this, Sym, Alignment, V);
+      Symtab->addShared(Name, this, Sym, Alignment, Ver);
     }
   }
 }




More information about the llvm-commits mailing list