[lld] r251799 - Make a method static. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 2 06:33:11 PST 2015


Author: rafael
Date: Mon Nov  2 08:33:11 2015
New Revision: 251799

URL: http://llvm.org/viewvc/llvm-project?rev=251799&view=rev
Log:
Make a method static. NFC.

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

Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=251799&r1=251798&r2=251799&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Mon Nov  2 08:33:11 2015
@@ -408,6 +408,11 @@ void GnuHashTableSection<ELFT>::writeHas
     Values[I - 1] |= 1;
 }
 
+static bool includeInGnuHashTable(SymbolBody *B) {
+  // Assume that includeInDynamicSymtab() is already checked.
+  return !B->isUndefined();
+}
+
 template <class ELFT>
 void GnuHashTableSection<ELFT>::addSymbols(std::vector<SymbolBody *> &Symbols) {
   std::vector<SymbolBody *> NotHashed;
@@ -860,11 +865,6 @@ bool lld::elf2::includeInDynamicSymtab(c
   return B.isUsedInDynamicReloc();
 }
 
-bool lld::elf2::includeInGnuHashTable(SymbolBody *B) {
-  // Assume that includeInDynamicSymtab() is already checked.
-  return !B->isUndefined();
-}
-
 template <class ELFT>
 bool lld::elf2::shouldKeepInSymtab(const ObjectFile<ELFT> &File,
                                    StringRef SymName,

Modified: lld/trunk/ELF/OutputSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.h?rev=251799&r1=251798&r2=251799&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Mon Nov  2 08:33:11 2015
@@ -57,7 +57,6 @@ bool canBePreempted(const SymbolBody *Bo
 template <class ELFT> bool includeInSymtab(const SymbolBody &B);
 
 bool includeInDynamicSymtab(const SymbolBody &B);
-bool includeInGnuHashTable(SymbolBody *B);
 
 template <class ELFT>
 bool shouldKeepInSymtab(




More information about the llvm-commits mailing list