[lld] r278181 - [Core] tentativeDefinition() is now unused.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 9 17:01:13 PDT 2016


Author: davide
Date: Tue Aug  9 19:01:13 2016
New Revision: 278181

URL: http://llvm.org/viewvc/llvm-project?rev=278181&view=rev
Log:
[Core] tentativeDefinition() is now unused.

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

Modified: lld/trunk/include/lld/Core/SymbolTable.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/SymbolTable.h?rev=278181&r1=278180&r2=278181&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/SymbolTable.h (original)
+++ lld/trunk/include/lld/Core/SymbolTable.h Tue Aug  9 19:01:13 2016
@@ -56,9 +56,6 @@ public:
   /// @brief returns vector of remaining UndefinedAtoms
   std::vector<const UndefinedAtom *> undefines();
 
-  /// returns vector of tentative definitions
-  std::vector<StringRef> tentativeDefinitions();
-
   /// @brief add atom to replacement table
   void addReplacement(const Atom *replaced, const Atom *replacement);
 

Modified: lld/trunk/lib/Core/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/SymbolTable.cpp?rev=278181&r1=278180&r2=278181&view=diff
==============================================================================
--- lld/trunk/lib/Core/SymbolTable.cpp (original)
+++ lld/trunk/lib/Core/SymbolTable.cpp Tue Aug  9 19:01:13 2016
@@ -303,17 +303,4 @@ std::vector<const UndefinedAtom *> Symbo
   return ret;
 }
 
-std::vector<StringRef> SymbolTable::tentativeDefinitions() {
-  std::vector<StringRef> ret;
-  for (auto entry : _nameTable) {
-    const Atom *atom = entry.second;
-    StringRef name   = entry.first;
-    assert(atom != nullptr);
-    if (const DefinedAtom *defAtom = dyn_cast<DefinedAtom>(atom))
-      if (defAtom->merge() == DefinedAtom::mergeAsTentative)
-        ret.push_back(name);
-  }
-  return ret;
-}
-
 } // namespace lld




More information about the llvm-commits mailing list