[ELF] Drop an unneeded reference to `symtab` from SymbolTable::addSymbol

The Symbol Table in LLD references the global object to add a symbol rather than adding it to itself.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D83184
This commit is contained in:
William S. Moses 2020-07-06 12:00:29 -07:00 committed by Fangrui Song
parent 916e2ca997
commit dc6b3f03a8
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ Symbol *SymbolTable::insert(StringRef name) {
}
Symbol *SymbolTable::addSymbol(const Symbol &newSym) {
Symbol *sym = symtab->insert(newSym.getName());
Symbol *sym = insert(newSym.getName());
sym->resolve(newSym);
return sym;
}