@@ -398,14 +398,15 @@ class SwiftBinaryModuleDependencyStorage
398
398
ArrayRef<ScannerImportStatementInfo> optionalModuleImports,
399
399
ArrayRef<LinkLibrary> linkLibraries, StringRef headerImport,
400
400
StringRef definingModuleInterface, bool isFramework, bool isStatic,
401
- StringRef moduleCacheKey)
401
+ StringRef moduleCacheKey, StringRef userModuleVersion )
402
402
: ModuleDependencyInfoStorageBase(ModuleDependencyKind::SwiftBinary,
403
403
moduleImports, optionalModuleImports,
404
404
linkLibraries, moduleCacheKey),
405
405
compiledModulePath (compiledModulePath), moduleDocPath(moduleDocPath),
406
406
sourceInfoPath(sourceInfoPath), headerImport(headerImport),
407
407
definingModuleInterfacePath(definingModuleInterface),
408
- isFramework(isFramework), isStatic(isStatic) {}
408
+ isFramework(isFramework), isStatic(isStatic),
409
+ userModuleVersion(userModuleVersion) {}
409
410
410
411
ModuleDependencyInfoStorageBase *clone () const override {
411
412
return new SwiftBinaryModuleDependencyStorage (*this );
@@ -439,6 +440,9 @@ class SwiftBinaryModuleDependencyStorage
439
440
// / A flag that indicates this dependency is associated with a static archive
440
441
const bool isStatic;
441
442
443
+ // / The user module version of this binary module.
444
+ const std::string userModuleVersion;
445
+
442
446
// / Return the path to the defining .swiftinterface of this module
443
447
// / of one was determined. Otherwise, return the .swiftmodule path
444
448
// / itself.
@@ -604,12 +608,13 @@ class ModuleDependencyInfo {
604
608
ArrayRef<ScannerImportStatementInfo> optionalModuleImports,
605
609
ArrayRef<LinkLibrary> linkLibraries, StringRef headerImport,
606
610
StringRef definingModuleInterface, bool isFramework,
607
- bool isStatic, StringRef moduleCacheKey) {
611
+ bool isStatic, StringRef moduleCacheKey, StringRef userModuleVer ) {
608
612
return ModuleDependencyInfo (
609
613
std::make_unique<SwiftBinaryModuleDependencyStorage>(
610
614
compiledModulePath, moduleDocPath, sourceInfoPath, moduleImports,
611
615
optionalModuleImports, linkLibraries, headerImport,
612
- definingModuleInterface,isFramework, isStatic, moduleCacheKey));
616
+ definingModuleInterface,isFramework, isStatic, moduleCacheKey,
617
+ userModuleVer));
613
618
}
614
619
615
620
// / Describe the main Swift module.
0 commit comments