forked from OSchip/llvm-project
Remove dead code.
This hook is called from one of the hottest loops in LLD and does nothing. llvm-svn: 231345
This commit is contained in:
parent
5b2d125c92
commit
3ba3e7131e
|
@ -219,11 +219,6 @@ public:
|
|||
std::vector<std::unique_ptr<Node>> &getNodes() { return _nodes; }
|
||||
const std::vector<std::unique_ptr<Node>> &getNodes() const { return _nodes; }
|
||||
|
||||
/// Notify the LinkingContext when an atom is added to the symbol table.
|
||||
/// This is an opportunity for flavor specific work to be done.
|
||||
virtual void notifySymbolTableAdd(const Atom *atom) const {
|
||||
}
|
||||
|
||||
/// Notify the LinkingContext when the symbol table found a name collision.
|
||||
/// The useNew parameter specifies which the symbol table plans to keep,
|
||||
/// but that can be changed by the LinkingContext. This is also an
|
||||
|
|
|
@ -139,7 +139,6 @@ bool SymbolTable::addByName(const Atom &newAtom) {
|
|||
const Atom *existing = findByName(name);
|
||||
if (existing == nullptr) {
|
||||
// Name is not in symbol table yet, add it associate with this atom.
|
||||
_context.notifySymbolTableAdd(&newAtom);
|
||||
_nameTable[name] = &newAtom;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue