[lld] r257217 - Use shorter name. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 8 14:17:43 PST 2016
Author: ruiu
Date: Fri Jan 8 16:17:42 2016
New Revision: 257217
URL: http://llvm.org/viewvc/llvm-project?rev=257217&view=rev
Log:
Use shorter name. NFC.
Modified:
lld/trunk/ELF/SymbolTable.cpp
lld/trunk/ELF/SymbolTable.h
Modified: lld/trunk/ELF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.cpp?rev=257217&r1=257216&r2=257217&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Fri Jan 8 16:17:42 2016
@@ -63,7 +63,7 @@ void SymbolTable<ELFT>::addFile(std::uni
if (auto *F = dyn_cast<SharedFile<ELFT>>(FileP)) {
// DSOs are uniquified not by filename but by soname.
F->parseSoName();
- if (!IncludedSoNames.insert(F->getSoName()).second)
+ if (!SoNames.insert(F->getSoName()).second)
return;
SharedFiles.emplace_back(cast<SharedFile<ELFT>>(File.release()));
Modified: lld/trunk/ELF/SymbolTable.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.h?rev=257217&r1=257216&r2=257217&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.h (original)
+++ lld/trunk/ELF/SymbolTable.h Fri Jan 8 16:17:42 2016
@@ -90,7 +90,7 @@ private:
std::vector<std::unique_ptr<SharedFile<ELFT>>> SharedFiles;
// Set of .so files to not link the same shared object file more than once.
- llvm::DenseSet<StringRef> IncludedSoNames;
+ llvm::DenseSet<StringRef> SoNames;
};
} // namespace elf2
More information about the llvm-commits
mailing list