@@ -1336,8 +1336,8 @@ std::error_code ModuleInterfaceLoader::findModuleFilesInDirectory(
1336
1336
std::unique_ptr<llvm::MemoryBuffer> *ModuleBuffer,
1337
1337
std::unique_ptr<llvm::MemoryBuffer> *ModuleDocBuffer,
1338
1338
std::unique_ptr<llvm::MemoryBuffer> *ModuleSourceInfoBuffer,
1339
- bool skipBuildingInterface , bool IsFramework,
1340
- bool isTestableImport ) {
1339
+ bool IsCanImportLookup , bool IsFramework,
1340
+ bool IsTestableImport ) {
1341
1341
1342
1342
// If running in OnlySerialized mode, ModuleInterfaceLoader
1343
1343
// should not have been constructed at all.
@@ -1361,11 +1361,9 @@ std::error_code ModuleInterfaceLoader::findModuleFilesInDirectory(
1361
1361
if (ModuleInterfaceSourcePath)
1362
1362
ModuleInterfaceSourcePath->assign (InPath->begin (), InPath->end ());
1363
1363
1364
- // If we've been told to skip building interfaces, we are done here and do
1365
- // not need to have the module actually built. For example, if we are
1366
- // currently answering a `canImport` query, it is enough to have found
1367
- // the interface.
1368
- if (skipBuildingInterface) {
1364
+ // If we are currently answering a `canImport` query, it is enough to have
1365
+ // found the interface.
1366
+ if (IsCanImportLookup) {
1369
1367
if (ModuleInterfacePath)
1370
1368
ModuleInterfacePath->assign (InPath->begin (), InPath->end ());
1371
1369
return std::error_code ();
@@ -2317,7 +2315,7 @@ bool ExplicitSwiftModuleLoader::findModule(
2317
2315
std::unique_ptr<llvm::MemoryBuffer> *ModuleBuffer,
2318
2316
std::unique_ptr<llvm::MemoryBuffer> *ModuleDocBuffer,
2319
2317
std::unique_ptr<llvm::MemoryBuffer> *ModuleSourceInfoBuffer,
2320
- bool skipBuildingInterface , bool isTestableDependencyLookup,
2318
+ bool IsCanImportLookup , bool isTestableDependencyLookup,
2321
2319
bool &IsFramework, bool &IsSystemModule) {
2322
2320
// Find a module with an actual, physical name on disk, in case
2323
2321
// -module-alias is used (otherwise same).
@@ -2396,7 +2394,7 @@ std::error_code ExplicitSwiftModuleLoader::findModuleFilesInDirectory(
2396
2394
std::unique_ptr<llvm::MemoryBuffer> *ModuleBuffer,
2397
2395
std::unique_ptr<llvm::MemoryBuffer> *ModuleDocBuffer,
2398
2396
std::unique_ptr<llvm::MemoryBuffer> *ModuleSourceInfoBuffer,
2399
- bool skipBuildingInterface , bool IsFramework,
2397
+ bool IsCanImportLookup , bool IsFramework,
2400
2398
bool IsTestableDependencyLookup) {
2401
2399
llvm_unreachable (" Not supported in the Explicit Swift Module Loader." );
2402
2400
return std::make_error_code (std::errc::not_supported);
@@ -2674,7 +2672,7 @@ bool ExplicitCASModuleLoader::findModule(
2674
2672
std::unique_ptr<llvm::MemoryBuffer> *ModuleBuffer,
2675
2673
std::unique_ptr<llvm::MemoryBuffer> *ModuleDocBuffer,
2676
2674
std::unique_ptr<llvm::MemoryBuffer> *ModuleSourceInfoBuffer,
2677
- bool skipBuildingInterface , bool isTestableDependencyLookup ,
2675
+ bool IsCanImportLookup , bool IsTestableDependencyLookup ,
2678
2676
bool &IsFramework, bool &IsSystemModule) {
2679
2677
// Find a module with an actual, physical name on disk, in case
2680
2678
// -module-alias is used (otherwise same).
@@ -2763,7 +2761,7 @@ std::error_code ExplicitCASModuleLoader::findModuleFilesInDirectory(
2763
2761
std::unique_ptr<llvm::MemoryBuffer> *ModuleBuffer,
2764
2762
std::unique_ptr<llvm::MemoryBuffer> *ModuleDocBuffer,
2765
2763
std::unique_ptr<llvm::MemoryBuffer> *ModuleSourceInfoBuffer,
2766
- bool skipBuildingInterface , bool IsFramework,
2764
+ bool IsCanImportLookup , bool IsFramework,
2767
2765
bool IsTestableDependencyLookup) {
2768
2766
llvm_unreachable (" Not supported in the Explicit Swift Module Loader." );
2769
2767
return std::make_error_code (std::errc::not_supported);
0 commit comments