summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2016-08-12 12:37:23 +0000
committerDavide Italiano <davide@freebsd.org>2016-08-12 12:37:23 +0000
commit54eb8ffd55db688777b5586d791edcb0e00eba9d (patch)
treeba6ddea8704f2967bc628b9ae1bf53f4f335ecb9
parent0f672ed87a649f6338b808c1124a8e59dee07572 (diff)
downloadbcm5719-llvm-54eb8ffd55db688777b5586d791edcb0e00eba9d.tar.gz
bcm5719-llvm-54eb8ffd55db688777b5586d791edcb0e00eba9d.zip
[Core] Retire yet another unused member function.
The code in lib/ could use a lot of love :( llvm-svn: 278506
-rw-r--r--lld/include/lld/Core/SymbolTable.h4
-rw-r--r--lld/lib/Core/SymbolTable.cpp6
2 files changed, 0 insertions, 10 deletions
diff --git a/lld/include/lld/Core/SymbolTable.h b/lld/include/lld/Core/SymbolTable.h
index 5298df559fe..ba4951e5bd1 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 c9d94e360aa..cacea5f3084 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<UndefinedAtom>(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.
OpenPOWER on IntegriCloud