[lld] r199526 - Using "final" as a variable name is a bit confusing in C++11, so rename it.

Rui Ueyama ruiu at google.com
Fri Jan 17 16:27:03 PST 2014


Author: ruiu
Date: Fri Jan 17 18:27:03 2014
New Revision: 199526

URL: http://llvm.org/viewvc/llvm-project?rev=199526&view=rev
Log:
Using "final" as a variable name is a bit confusing in C++11, so rename it.

Modified:
    lld/trunk/include/lld/Core/Resolver.h
    lld/trunk/lib/Core/Resolver.cpp

Modified: lld/trunk/include/lld/Core/Resolver.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/Resolver.h?rev=199526&r1=199525&r2=199526&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/Resolver.h (original)
+++ lld/trunk/include/lld/Core/Resolver.h Fri Jan 17 18:27:03 2014
@@ -71,7 +71,7 @@ private:
   bool resolveUndefines();
   void updateReferences();
   void deadStripOptimize();
-  bool checkUndefines(bool final);
+  bool checkUndefines(bool isFinal);
   void removeCoalescedAwayAtoms();
   void checkDylibSymbolCollisions();
   void linkTimeOptimize();

Modified: lld/trunk/lib/Core/Resolver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/Resolver.cpp?rev=199526&r1=199525&r2=199526&view=diff
==============================================================================
--- lld/trunk/lib/Core/Resolver.cpp (original)
+++ lld/trunk/lib/Core/Resolver.cpp Fri Jan 17 18:27:03 2014
@@ -360,9 +360,9 @@ void Resolver::deadStripOptimize() {
 }
 
 // error out if some undefines remain
-bool Resolver::checkUndefines(bool final) {
+bool Resolver::checkUndefines(bool isFinal) {
   // when using LTO, undefines are checked after bitcode is optimized
-  if (_haveLLVMObjs && !final)
+  if (_haveLLVMObjs && !isFinal)
     return false;
 
   // build vector of remaining undefined symbols





More information about the llvm-commits mailing list