[PATCH] D83184: Avoid using globals in ELF Symbol Table
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 7 00:28:46 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGdc6b3f03a872: [ELF] Drop an unneeded reference to `symtab` from SymbolTable::addSymbol (authored by William S. Moses <gh at wsmoses.com>, committed by MaskRay).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83184/new/
https://reviews.llvm.org/D83184
Files:
lld/ELF/SymbolTable.cpp
Index: lld/ELF/SymbolTable.cpp
===================================================================
--- lld/ELF/SymbolTable.cpp
+++ lld/ELF/SymbolTable.cpp
@@ -94,7 +94,7 @@
}
Symbol *SymbolTable::addSymbol(const Symbol &newSym) {
- Symbol *sym = symtab->insert(newSym.getName());
+ Symbol *sym = insert(newSym.getName());
sym->resolve(newSym);
return sym;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83184.275623.patch
Type: text/x-patch
Size: 371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200707/ff06bb4e/attachment.bin>
More information about the llvm-commits
mailing list