Extends canImport to check for submodule availability

This commit is contained in:
ApolloZhu
2021-07-05 22:13:37 -04:00
committed by Apollo Zhu
parent d1bb98b11e
commit 683d469fcd
24 changed files with 294 additions and 51 deletions

View File

@@ -151,7 +151,7 @@ class ExplicitSwiftModuleLoader: public SerializedModuleLoaderBase {
std::unique_ptr<llvm::MemoryBuffer> *ModuleSourceInfoBuffer,
bool skipBuildingInterface, bool IsFramework) override;
bool canImportModule(ImportPath::Element mID, llvm::VersionTuple version,
bool canImportModule(ImportPath::Module named, llvm::VersionTuple version,
bool underlyingVersion) override;
bool isCached(StringRef DepPath) override { return false; };