@@ -398,14 +398,15 @@ class SwiftBinaryModuleDependencyStorage
398398 ArrayRef<ScannerImportStatementInfo> optionalModuleImports,
399399 ArrayRef<LinkLibrary> linkLibraries, StringRef headerImport,
400400 StringRef definingModuleInterface, bool isFramework, bool isStatic,
401- StringRef moduleCacheKey)
401+ StringRef moduleCacheKey, StringRef userModuleVersion )
402402 : ModuleDependencyInfoStorageBase(ModuleDependencyKind::SwiftBinary,
403403 moduleImports, optionalModuleImports,
404404 linkLibraries, moduleCacheKey),
405405 compiledModulePath (compiledModulePath), moduleDocPath(moduleDocPath),
406406 sourceInfoPath(sourceInfoPath), headerImport(headerImport),
407407 definingModuleInterfacePath(definingModuleInterface),
408- isFramework(isFramework), isStatic(isStatic) {}
408+ isFramework(isFramework), isStatic(isStatic),
409+ userModuleVersion(userModuleVersion) {}
409410
410411 ModuleDependencyInfoStorageBase *clone () const override {
411412 return new SwiftBinaryModuleDependencyStorage (*this );
@@ -439,6 +440,9 @@ class SwiftBinaryModuleDependencyStorage
439440 // / A flag that indicates this dependency is associated with a static archive
440441 const bool isStatic;
441442
443+ // / The user module version of this binary module.
444+ const std::string userModuleVersion;
445+
442446 // / Return the path to the defining .swiftinterface of this module
443447 // / of one was determined. Otherwise, return the .swiftmodule path
444448 // / itself.
@@ -604,12 +608,13 @@ class ModuleDependencyInfo {
604608 ArrayRef<ScannerImportStatementInfo> optionalModuleImports,
605609 ArrayRef<LinkLibrary> linkLibraries, StringRef headerImport,
606610 StringRef definingModuleInterface, bool isFramework,
607- bool isStatic, StringRef moduleCacheKey) {
611+ bool isStatic, StringRef moduleCacheKey, StringRef userModuleVer ) {
608612 return ModuleDependencyInfo (
609613 std::make_unique<SwiftBinaryModuleDependencyStorage>(
610614 compiledModulePath, moduleDocPath, sourceInfoPath, moduleImports,
611615 optionalModuleImports, linkLibraries, headerImport,
612- definingModuleInterface,isFramework, isStatic, moduleCacheKey));
616+ definingModuleInterface,isFramework, isStatic, moduleCacheKey,
617+ userModuleVer));
613618 }
614619
615620 // / Describe the main Swift module.
0 commit comments