@@ -478,49 +478,27 @@ class ModuleInterfaceLoaderOptions {
478478 ModuleInterfaceLoaderOptions () = default ;
479479};
480480
481- // / Strongly typed enum that represents if we require all SILModules to have
482- // / OSSA modules emitted. This is implemented by incorporating this bit into the
483- // / module cache hash.
484- struct RequireOSSAModules_t {
485- enum ValueTy {
486- No = 0 ,
487- Yes = 1 ,
488- };
489-
490- ValueTy value;
491-
492- RequireOSSAModules_t (const SILOptions &opts)
493- : value(opts.EnableOSSAModules ? RequireOSSAModules_t::Yes
494- : RequireOSSAModules_t::No) {}
495-
496- operator ValueTy () const { return value; }
497- explicit operator bool () const { return bool (value); }
498- };
499-
500481class ModuleInterfaceCheckerImpl : public ModuleInterfaceChecker {
501482 friend class ModuleInterfaceLoader ;
502483 ASTContext &Ctx;
503484 std::string CacheDir;
504485 std::string PrebuiltCacheDir;
505486 std::string BackupInterfaceDir;
506487 ModuleInterfaceLoaderOptions Opts;
507- RequireOSSAModules_t RequiresOSSAModules;
508488
509489public:
510490 explicit ModuleInterfaceCheckerImpl (ASTContext &Ctx, StringRef cacheDir,
511491 StringRef prebuiltCacheDir,
512492 StringRef BackupInterfaceDir,
513- ModuleInterfaceLoaderOptions opts,
514- RequireOSSAModules_t requiresOSSAModules)
493+ ModuleInterfaceLoaderOptions opts)
515494 : Ctx(Ctx), CacheDir(cacheDir), PrebuiltCacheDir(prebuiltCacheDir),
516495 BackupInterfaceDir(BackupInterfaceDir),
517- Opts(opts), RequiresOSSAModules(requiresOSSAModules) {}
496+ Opts(opts) {}
518497 explicit ModuleInterfaceCheckerImpl (ASTContext &Ctx, StringRef cacheDir,
519498 StringRef prebuiltCacheDir,
520- ModuleInterfaceLoaderOptions opts,
521- RequireOSSAModules_t requiresOSSAModules):
499+ ModuleInterfaceLoaderOptions opts):
522500 ModuleInterfaceCheckerImpl(Ctx, cacheDir, prebuiltCacheDir, StringRef(),
523- opts, requiresOSSAModules ) {}
501+ opts) {}
524502 std::vector<std::string>
525503 getCompiledModuleCandidatesForInterface (StringRef moduleName,
526504 StringRef interfacePath) override ;
@@ -596,7 +574,6 @@ class ModuleInterfaceLoader : public SerializedModuleLoaderBase {
596574 ArrayRef<std::pair<std::string, std::string>> replayPrefixMap,
597575 bool SerializeDependencyHashes, bool TrackSystemDependencies,
598576 ModuleInterfaceLoaderOptions Opts,
599- RequireOSSAModules_t RequireOSSAModules,
600577 bool silenceInterfaceDiagnostics);
601578
602579 // / Unconditionally build \p InPath (a swiftinterface file) to \p OutPath (as
@@ -666,8 +643,7 @@ struct InterfaceSubContextDelegateImpl : InterfaceSubContextDelegate {
666643 const LangOptions &LangOpts,
667644 const ClangImporterOptions &clangImporterOpts,
668645 const CASOptions &casOpts,
669- bool suppressRemarks,
670- RequireOSSAModules_t requireOSSAModules);
646+ bool suppressRemarks);
671647 bool extractSwiftInterfaceVersionAndArgs (CompilerInvocation &subInvocation,
672648 DiagnosticEngine &subInstanceDiags,
673649 SwiftInterfaceInfo &interfaceInfo,
@@ -684,7 +660,7 @@ struct InterfaceSubContextDelegateImpl : InterfaceSubContextDelegate {
684660 StringRef backupModuleInterfaceDir,
685661 ArrayRef<std::pair<std::string, std::string>> replayPrefixMap,
686662 bool serializeDependencyHashes,
687- bool trackSystemDependencies, RequireOSSAModules_t requireOSSAModules );
663+ bool trackSystemDependencies);
688664
689665 template <typename ...ArgTypes>
690666 static InFlightDiagnostic diagnose (StringRef interfacePath,
0 commit comments