[lld] r285164 - Rename variable to be more consistent.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 25 21:01:08 PDT 2016


Author: ruiu
Date: Tue Oct 25 23:01:07 2016
New Revision: 285164

URL: http://llvm.org/viewvc/llvm-project?rev=285164&view=rev
Log:
Rename variable to be more consistent.

Modified:
    lld/trunk/ELF/Driver.cpp
    lld/trunk/ELF/Driver.h

Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=285164&r1=285163&r2=285164&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Tue Oct 25 23:01:07 2016
@@ -135,7 +135,7 @@ void LinkerDriver::addFile(StringRef Pat
     readLinkerScript(MBRef);
     return;
   case file_magic::archive:
-    if (WholeArchive) {
+    if (InWholeArchive) {
       for (MemoryBufferRef MB : getArchiveMembers(MBRef))
         Files.push_back(createObjectFile(MB, Path));
       return;
@@ -619,10 +619,10 @@ void LinkerDriver::createFiles(opt::Inpu
       Config->Static = false;
       break;
     case OPT_whole_archive:
-      WholeArchive = true;
+      InWholeArchive = true;
       break;
     case OPT_no_whole_archive:
-      WholeArchive = false;
+      InWholeArchive = false;
       break;
     case OPT_start_lib:
       InLib = true;

Modified: lld/trunk/ELF/Driver.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.h?rev=285164&r1=285163&r2=285164&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.h (original)
+++ lld/trunk/ELF/Driver.h Tue Oct 25 23:01:07 2016
@@ -42,7 +42,7 @@ private:
   template <class ELFT> void link(llvm::opt::InputArgList &Args);
 
   // True if we are in --whole-archive and --no-whole-archive.
-  bool WholeArchive = false;
+  bool InWholeArchive = false;
 
   // True if we are in --start-lib and --end-lib.
   bool InLib = false;




More information about the llvm-commits mailing list