diff --git a/lld/include/lld/Core/SymbolTable.h b/lld/include/lld/Core/SymbolTable.h index 5298df559fe8..ba4951e5bd13 100644 --- a/lld/include/lld/Core/SymbolTable.h +++ b/lld/include/lld/Core/SymbolTable.h @@ -46,10 +46,6 @@ public: /// @brief add atom to symbol table bool add(const AbsoluteAtom &); - /// @brief checks if name is in symbol table and if so atom is not - /// UndefinedAtom - bool isDefined(StringRef sym); - /// @brief returns atom in symbol table for specified name (or nullptr) const Atom *findByName(StringRef sym); diff --git a/lld/lib/Core/SymbolTable.cpp b/lld/lib/Core/SymbolTable.cpp index c9d94e360aac..cacea5f30847 100644 --- a/lld/lib/Core/SymbolTable.cpp +++ b/lld/lib/Core/SymbolTable.cpp @@ -261,12 +261,6 @@ const Atom *SymbolTable::findByName(StringRef sym) { return pos->second; } -bool SymbolTable::isDefined(StringRef sym) { - if (const Atom *atom = findByName(sym)) - return !isa(atom); - return false; -} - const Atom *SymbolTable::replacement(const Atom *atom) { // Find the replacement for a given atom. Atoms in _replacedAtoms // may be chained, so find the last one.