DependenciesScanner: refactor cross import overlay resolver to a standalone function. NFC

This change facilitates resolving cross-import overlays from transitive dependencies.
This commit is contained in:
Xi Ge
2020-07-23 15:35:06 -07:00
parent 42779d66c7
commit 056f00322d
10 changed files with 154 additions and 63 deletions

View File

@@ -255,7 +255,7 @@ public:
/// Add a dependency on the given module, if it was not already in the set.
void addModuleDependency(StringRef module,
llvm::StringSet<> &alreadyAddedModules);
llvm::StringSet<> *alreadyAddedModules = nullptr);
/// Add all of the module dependencies for the imports in the given source
/// file to the set of module dependencies.