Use shorter name. NFC.

llvm-svn: 257217
This commit is contained in:
Rui Ueyama 2016-01-08 22:17:42 +00:00
parent 683564ea63
commit 131e0ffa10
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ void SymbolTable<ELFT>::addFile(std::unique_ptr<InputFile> File) {
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()));

View File

@ -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