[lld] r259144 - Rename includeInDynamicSymtab -> includeInDynsym.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 28 18:17:01 PST 2016


Author: ruiu
Date: Thu Jan 28 20:17:01 2016
New Revision: 259144

URL: http://llvm.org/viewvc/llvm-project?rev=259144&view=rev
Log:
Rename includeInDynamicSymtab -> includeInDynsym.

Modified:
    lld/trunk/ELF/OutputSections.cpp
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=259144&r1=259143&r2=259144&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Thu Jan 28 20:17:01 2016
@@ -554,7 +554,7 @@ void GnuHashTableSection<ELFT>::writeHas
 }
 
 static bool includeInGnuHashTable(SymbolBody *B) {
-  // Assume that includeInDynamicSymtab() is already checked.
+  // Assume that includeInDynsym() is already checked.
   return !B->isUndefined();
 }
 

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=259144&r1=259143&r2=259144&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Jan 28 20:17:01 2016
@@ -681,7 +681,7 @@ template <class ELFT> static bool includ
   return true;
 }
 
-static bool includeInDynamicSymtab(const SymbolBody &B) {
+static bool includeInDynsym(const SymbolBody &B) {
   uint8_t V = B.getVisibility();
   if (V != STV_DEFAULT && V != STV_PROTECTED)
     return false;
@@ -884,7 +884,7 @@ template <class ELFT> bool Writer<ELFT>:
     if (Out<ELFT>::SymTab)
       Out<ELFT>::SymTab->addSymbol(Body);
 
-    if (isOutputDynamic() && includeInDynamicSymtab(*Body))
+    if (isOutputDynamic() && includeInDynsym(*Body))
       Out<ELFT>::DynSymTab->addSymbol(Body);
   }
 




More information about the llvm-commits mailing list