From 54eb8ffd55db688777b5586d791edcb0e00eba9d Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Fri, 12 Aug 2016 12:37:23 +0000 Subject: [PATCH] [Core] Retire yet another unused member function. The code in lib/ could use a lot of love :( llvm-svn: 278506 --- lld/include/lld/Core/SymbolTable.h | 4 ---- lld/lib/Core/SymbolTable.cpp | 6 ------ 2 files changed, 10 deletions(-) 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.