forked from OSchip/llvm-project
[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:
parent
916e2ca997
commit
dc6b3f03a8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue