@@ -1129,7 +1129,7 @@ class ModuleInterfaceLoaderImpl {
11291129 ctx.SourceMgr , &ctx.Diags , ctx.SearchPathOpts , ctx.LangOpts ,
11301130 ctx.ClangImporterOpts , ctx.CASOpts , Opts,
11311131 /* buildModuleCacheDirIfAbsent*/ true , cacheDir, prebuiltCacheDir,
1132- backupInterfaceDir,
1132+ backupInterfaceDir, /* replayPrefixMap= */ {},
11331133 /* serializeDependencyHashes*/ false , trackSystemDependencies,
11341134 requiresOSSAModules);
11351135
@@ -1501,16 +1501,17 @@ bool ModuleInterfaceLoader::buildSwiftModuleFromSwiftInterface(
15011501 const ClangImporterOptions &ClangOpts, const CASOptions &CASOpts,
15021502 StringRef CacheDir, StringRef PrebuiltCacheDir,
15031503 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) {
15081509 InterfaceSubContextDelegateImpl astDelegate (
1509- SourceMgr, &Diags, SearchPathOpts, LangOpts, ClangOpts, CASOpts, LoaderOpts,
1510+ SourceMgr, &Diags, SearchPathOpts, LangOpts, ClangOpts, CASOpts,
1511+ LoaderOpts,
15101512 /* CreateCacheDirIfAbsent*/ true , CacheDir, PrebuiltCacheDir,
1511- BackupInterfaceDir,
1512- SerializeDependencyHashes, TrackSystemDependencies,
1513- RequireOSSAModules);
1513+ BackupInterfaceDir, replayPrefixMap, SerializeDependencyHashes,
1514+ TrackSystemDependencies, RequireOSSAModules);
15141515 ImplicitModuleInterfaceBuilder builder (SourceMgr, &Diags, astDelegate, InPath,
15151516 SearchPathOpts.getSDKPath (),
15161517 SearchPathOpts.getSysRoot (),
@@ -1885,6 +1886,7 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
18851886 ModuleInterfaceLoaderOptions LoaderOpts, bool buildModuleCacheDirIfAbsent,
18861887 StringRef moduleCachePath, StringRef prebuiltCachePath,
18871888 StringRef backupModuleInterfaceDir,
1889+ ArrayRef<std::pair<std::string, std::string>> replayPrefixMap,
18881890 bool serializeDependencyHashes, bool trackSystemDependencies,
18891891 RequireOSSAModules_t requireOSSAModules)
18901892 : SM(SM), Diags(Diags), ArgSaver(Allocator) {
@@ -1933,6 +1935,7 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
19331935 genericSubInvocation.getLangOptions ().EnableAppExtensionRestrictions = true ;
19341936 GenericArgs.push_back (" -application-extension" );
19351937 }
1938+ SubFEOpts.CacheReplayPrefixMap = replayPrefixMap;
19361939
19371940 // Pass down -explicit-swift-module-map-file
19381941 StringRef explicitSwiftModuleMap = searchPathOpts.ExplicitSwiftModuleMapPath ;
0 commit comments