mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ModuleInterface: refactor ModuleInterfaceChecker out of ModuleInterfaceLoader
This refactoring allows us to drop ModuleInterfaceLoader when explicit modules are enabled. Before this change, the dependencies scanner needs the loader to be present to access functionalities like collecting prebuilt module candidates.
This commit is contained in:
@@ -98,8 +98,7 @@ std::error_code PlaceholderSwiftModuleScanner::findModuleFilesInDirectory(
|
||||
static std::vector<std::string> getCompiledCandidates(ASTContext &ctx,
|
||||
StringRef moduleName,
|
||||
StringRef interfacePath) {
|
||||
return static_cast<SerializedModuleLoaderBase*>(ctx
|
||||
.getModuleInterfaceLoader())->getCompiledModuleCandidatesForInterface(
|
||||
return ctx.getModuleInterfaceChecker()->getCompiledModuleCandidatesForInterface(
|
||||
moduleName.str(), interfacePath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user