From 1392e84caf5de00a287b963490777c1282b3c0fc Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sat, 28 Oct 2017 20:16:11 +0000 Subject: [PATCH] Rename V -> Ver for readability. llvm-svn: 316842 --- lld/ELF/InputFiles.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index a848c4d..74e0c04 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -748,7 +748,7 @@ template void SharedFile::parseRest() { // 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 void SharedFile::parseRest() { " 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 void SharedFile::parseRest() { } 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); } } } -- 2.7.4