[lld] r278506 - [Core] Retire yet another unused member function.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 12 05:37:23 PDT 2016
Author: davide
Date: Fri Aug 12 07:37:23 2016
New Revision: 278506
URL: http://llvm.org/viewvc/llvm-project?rev=278506&view=rev
Log:
[Core] Retire yet another unused member function.
The code in lib/ could use a lot of love :(
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=278506&r1=278505&r2=278506&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/SymbolTable.h (original)
+++ lld/trunk/include/lld/Core/SymbolTable.h Fri Aug 12 07:37:23 2016
@@ -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);
Modified: lld/trunk/lib/Core/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/SymbolTable.cpp?rev=278506&r1=278505&r2=278506&view=diff
==============================================================================
--- lld/trunk/lib/Core/SymbolTable.cpp (original)
+++ lld/trunk/lib/Core/SymbolTable.cpp Fri Aug 12 07:37:23 2016
@@ -261,12 +261,6 @@ const Atom *SymbolTable::findByName(Stri
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.
More information about the llvm-commits
mailing list