projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41a6433
)
[ELF] scanVersionScript: remove unused variable
author
Fangrui Song
<i@maskray.me>
Fri, 24 Dec 2021 02:18:25 +0000
(18:18 -0800)
committer
Fangrui Song
<i@maskray.me>
Fri, 24 Dec 2021 02:18:25 +0000
(18:18 -0800)
lld/ELF/SymbolTable.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/SymbolTable.cpp
b/lld/ELF/SymbolTable.cpp
index
88e6250
..
a12c5f2
100644
(file)
--- a/
lld/ELF/SymbolTable.cpp
+++ b/
lld/ELF/SymbolTable.cpp
@@
-261,7
+261,6
@@
void SymbolTable::scanVersionScript() {
SmallString<128> buf;
// First, we assign versions to exact matching symbols,
// i.e. version definitions not containing any glob meta-characters.
- std::vector<Symbol *> syms;
for (VersionDefinition &v : config->versionDefinitions) {
auto assignExact = [&](SymbolVersion pat, uint16_t id, StringRef ver) {
bool found =