forked from OSchip/llvm-project
parent
683564ea63
commit
131e0ffa10
|
@ -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()));
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue