@@ -1129,7 +1129,7 @@ class ModuleInterfaceLoaderImpl {
1129
1129
ctx.SourceMgr , &ctx.Diags , ctx.SearchPathOpts , ctx.LangOpts ,
1130
1130
ctx.ClangImporterOpts , ctx.CASOpts , Opts,
1131
1131
/* buildModuleCacheDirIfAbsent*/ true , cacheDir, prebuiltCacheDir,
1132
- backupInterfaceDir,
1132
+ backupInterfaceDir, /* replayPrefixMap= */ {},
1133
1133
/* serializeDependencyHashes*/ false , trackSystemDependencies,
1134
1134
requiresOSSAModules);
1135
1135
@@ -1501,16 +1501,17 @@ bool ModuleInterfaceLoader::buildSwiftModuleFromSwiftInterface(
1501
1501
const ClangImporterOptions &ClangOpts, const CASOptions &CASOpts,
1502
1502
StringRef CacheDir, StringRef PrebuiltCacheDir,
1503
1503
StringRef BackupInterfaceDir, StringRef ModuleName, StringRef InPath,
1504
- StringRef OutPath, StringRef ABIOutputPath, bool SerializeDependencyHashes,
1505
- bool TrackSystemDependencies, ModuleInterfaceLoaderOptions LoaderOpts,
1506
- RequireOSSAModules_t RequireOSSAModules,
1507
- bool silenceInterfaceDiagnostics) {
1504
+ StringRef OutPath, StringRef ABIOutputPath,
1505
+ ArrayRef<std::pair<std::string, std::string>> replayPrefixMap,
1506
+ bool SerializeDependencyHashes, bool TrackSystemDependencies,
1507
+ ModuleInterfaceLoaderOptions LoaderOpts,
1508
+ RequireOSSAModules_t RequireOSSAModules, bool silenceInterfaceDiagnostics) {
1508
1509
InterfaceSubContextDelegateImpl astDelegate (
1509
- SourceMgr, &Diags, SearchPathOpts, LangOpts, ClangOpts, CASOpts, LoaderOpts,
1510
+ SourceMgr, &Diags, SearchPathOpts, LangOpts, ClangOpts, CASOpts,
1511
+ LoaderOpts,
1510
1512
/* CreateCacheDirIfAbsent*/ true , CacheDir, PrebuiltCacheDir,
1511
- BackupInterfaceDir,
1512
- SerializeDependencyHashes, TrackSystemDependencies,
1513
- RequireOSSAModules);
1513
+ BackupInterfaceDir, replayPrefixMap, SerializeDependencyHashes,
1514
+ TrackSystemDependencies, RequireOSSAModules);
1514
1515
ImplicitModuleInterfaceBuilder builder (SourceMgr, &Diags, astDelegate, InPath,
1515
1516
SearchPathOpts.getSDKPath (),
1516
1517
SearchPathOpts.getSysRoot (),
@@ -1885,6 +1886,7 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
1885
1886
ModuleInterfaceLoaderOptions LoaderOpts, bool buildModuleCacheDirIfAbsent,
1886
1887
StringRef moduleCachePath, StringRef prebuiltCachePath,
1887
1888
StringRef backupModuleInterfaceDir,
1889
+ ArrayRef<std::pair<std::string, std::string>> replayPrefixMap,
1888
1890
bool serializeDependencyHashes, bool trackSystemDependencies,
1889
1891
RequireOSSAModules_t requireOSSAModules)
1890
1892
: SM(SM), Diags(Diags), ArgSaver(Allocator) {
@@ -1933,6 +1935,7 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
1933
1935
genericSubInvocation.getLangOptions ().EnableAppExtensionRestrictions = true ;
1934
1936
GenericArgs.push_back (" -application-extension" );
1935
1937
}
1938
+ SubFEOpts.CacheReplayPrefixMap = replayPrefixMap;
1936
1939
1937
1940
// Pass down -explicit-swift-module-map-file
1938
1941
StringRef explicitSwiftModuleMap = searchPathOpts.ExplicitSwiftModuleMapPath ;
0 commit comments