19
19
#include " swift/AST/DiagnosticsSema.h"
20
20
#include " swift/AST/FileSystem.h"
21
21
#include " swift/AST/Module.h"
22
- #include " llvm/ADT/StringSet.h"
23
22
#include " swift/Basic/Defer.h"
24
23
#include " swift/Frontend/Frontend.h"
25
24
#include " swift/Frontend/ModuleInterfaceSupport.h"
28
27
#include " clang/Frontend/CompilerInstance.h"
29
28
#include " clang/Lex/PreprocessorOptions.h"
30
29
#include " llvm/ADT/Hashing.h"
31
- #include " llvm/ADT/StringSet.h"
32
30
#include " llvm/Support/xxhash.h"
33
31
#include " llvm/Support/Debug.h"
34
32
#include " llvm/Support/CommandLine.h"
@@ -85,7 +83,6 @@ bool ModuleInterfaceBuilder::collectDepsForSerialization(
85
83
InitialDepNames.push_back (interfacePath);
86
84
InitialDepNames.insert (InitialDepNames.end (),
87
85
extraDependencies.begin (), extraDependencies.end ());
88
- llvm::StringSet<> AllDepNames;
89
86
SmallString<128 > Scratch;
90
87
91
88
for (const auto &InitialDepName : InitialDepNames) {
@@ -104,7 +101,7 @@ bool ModuleInterfaceBuilder::collectDepsForSerialization(
104
101
if (!prebuiltCachePath.empty () && DepName.startswith (prebuiltCachePath))
105
102
continue ;
106
103
107
- if (AllDepNames. insert (DepName). second && dependencyTracker) {
104
+ if (dependencyTracker) {
108
105
dependencyTracker->addDependency (DepName, /* isSystem*/ IsSDKRelative);
109
106
}
110
107
0 commit comments