[Core] Retire yet another unused member function.

The code in lib/ could use a lot of love :(

llvm-svn: 278506
This commit is contained in:
Davide Italiano 2016-08-12 12:37:23 +00:00
parent 0f672ed87a
commit 54eb8ffd55
2 changed files with 0 additions and 10 deletions

View File

@ -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);

View File

@ -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.