[lld] r256878 - Fix local variable naming.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 5 16:09:39 PST 2016
Author: ruiu
Date: Tue Jan 5 18:09:39 2016
New Revision: 256878
URL: http://llvm.org/viewvc/llvm-project?rev=256878&view=rev
Log:
Fix local variable naming.
Modified:
lld/trunk/ELF/SymbolTable.cpp
Modified: lld/trunk/ELF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.cpp?rev=256878&r1=256877&r2=256878&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Tue Jan 5 18:09:39 2016
@@ -172,15 +172,15 @@ template <class ELFT> void SymbolTable<E
// compare() returns -1, 0, or 1 if the lhs symbol is less preferable,
// equivalent (conflicting), or more preferable, respectively.
- int comp = Existing->compare<ELFT>(New);
- if (comp == 0) {
+ int Comp = Existing->compare<ELFT>(New);
+ if (Comp == 0) {
std::string S = "duplicate symbol: " + conflictMsg(Existing, New);
if (!Config->AllowMultipleDefinition)
error(S);
warning(S);
return;
}
- if (comp < 0)
+ if (Comp < 0)
Sym->Body = New;
}
More information about the llvm-commits
mailing list