[lld] 1abbbc7 - [ELF] scanVersionScript: remove unused variable
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 23 18:18:31 PST 2021
Author: Fangrui Song
Date: 2021-12-23T18:18:25-08:00
New Revision: 1abbbc7b2435913be2ee17ecc85421fd8ad8a73f
URL: https://github.com/llvm/llvm-project/commit/1abbbc7b2435913be2ee17ecc85421fd8ad8a73f
DIFF: https://github.com/llvm/llvm-project/commit/1abbbc7b2435913be2ee17ecc85421fd8ad8a73f.diff
LOG: [ELF] scanVersionScript: remove unused variable
Added:
Modified:
lld/ELF/SymbolTable.cpp
Removed:
################################################################################
diff --git a/lld/ELF/SymbolTable.cpp b/lld/ELF/SymbolTable.cpp
index 88e62507e893..a12c5f22c4fe 100644
--- 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 =
More information about the llvm-commits
mailing list