diff options
-rw-r--r-- | lld/include/lld/Core/SymbolTable.h | 3 | ||||
-rw-r--r-- | lld/lib/Core/SymbolTable.cpp | 13 |
2 files changed, 0 insertions, 16 deletions
diff --git a/lld/include/lld/Core/SymbolTable.h b/lld/include/lld/Core/SymbolTable.h index db610ad1406..b11304d2bdc 100644 --- a/lld/include/lld/Core/SymbolTable.h +++ b/lld/include/lld/Core/SymbolTable.h @@ -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); diff --git a/lld/lib/Core/SymbolTable.cpp b/lld/lib/Core/SymbolTable.cpp index 44631a5d40d..76fee1aecbd 100644 --- a/lld/lib/Core/SymbolTable.cpp +++ b/lld/lib/Core/SymbolTable.cpp @@ -303,17 +303,4 @@ std::vector<const UndefinedAtom *> SymbolTable::undefines() { 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 |