forked from OSchip/llvm-project
[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:
parent
0f672ed87a
commit
54eb8ffd55
|
@ -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);
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue