@@ -478,49 +478,27 @@ class ModuleInterfaceLoaderOptions {
478
478
ModuleInterfaceLoaderOptions () = default ;
479
479
};
480
480
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
-
500
481
class ModuleInterfaceCheckerImpl : public ModuleInterfaceChecker {
501
482
friend class ModuleInterfaceLoader ;
502
483
ASTContext &Ctx;
503
484
std::string CacheDir;
504
485
std::string PrebuiltCacheDir;
505
486
std::string BackupInterfaceDir;
506
487
ModuleInterfaceLoaderOptions Opts;
507
- RequireOSSAModules_t RequiresOSSAModules;
508
488
509
489
public:
510
490
explicit ModuleInterfaceCheckerImpl (ASTContext &Ctx, StringRef cacheDir,
511
491
StringRef prebuiltCacheDir,
512
492
StringRef BackupInterfaceDir,
513
- ModuleInterfaceLoaderOptions opts,
514
- RequireOSSAModules_t requiresOSSAModules)
493
+ ModuleInterfaceLoaderOptions opts)
515
494
: Ctx(Ctx), CacheDir(cacheDir), PrebuiltCacheDir(prebuiltCacheDir),
516
495
BackupInterfaceDir(BackupInterfaceDir),
517
- Opts(opts), RequiresOSSAModules(requiresOSSAModules) {}
496
+ Opts(opts) {}
518
497
explicit ModuleInterfaceCheckerImpl (ASTContext &Ctx, StringRef cacheDir,
519
498
StringRef prebuiltCacheDir,
520
- ModuleInterfaceLoaderOptions opts,
521
- RequireOSSAModules_t requiresOSSAModules):
499
+ ModuleInterfaceLoaderOptions opts):
522
500
ModuleInterfaceCheckerImpl(Ctx, cacheDir, prebuiltCacheDir, StringRef(),
523
- opts, requiresOSSAModules ) {}
501
+ opts) {}
524
502
std::vector<std::string>
525
503
getCompiledModuleCandidatesForInterface (StringRef moduleName,
526
504
StringRef interfacePath) override ;
@@ -596,7 +574,6 @@ class ModuleInterfaceLoader : public SerializedModuleLoaderBase {
596
574
ArrayRef<std::pair<std::string, std::string>> replayPrefixMap,
597
575
bool SerializeDependencyHashes, bool TrackSystemDependencies,
598
576
ModuleInterfaceLoaderOptions Opts,
599
- RequireOSSAModules_t RequireOSSAModules,
600
577
bool silenceInterfaceDiagnostics);
601
578
602
579
// / Unconditionally build \p InPath (a swiftinterface file) to \p OutPath (as
@@ -666,8 +643,7 @@ struct InterfaceSubContextDelegateImpl : InterfaceSubContextDelegate {
666
643
const LangOptions &LangOpts,
667
644
const ClangImporterOptions &clangImporterOpts,
668
645
const CASOptions &casOpts,
669
- bool suppressRemarks,
670
- RequireOSSAModules_t requireOSSAModules);
646
+ bool suppressRemarks);
671
647
bool extractSwiftInterfaceVersionAndArgs (CompilerInvocation &subInvocation,
672
648
DiagnosticEngine &subInstanceDiags,
673
649
SwiftInterfaceInfo &interfaceInfo,
@@ -684,7 +660,7 @@ struct InterfaceSubContextDelegateImpl : InterfaceSubContextDelegate {
684
660
StringRef backupModuleInterfaceDir,
685
661
ArrayRef<std::pair<std::string, std::string>> replayPrefixMap,
686
662
bool serializeDependencyHashes,
687
- bool trackSystemDependencies, RequireOSSAModules_t requireOSSAModules );
663
+ bool trackSystemDependencies);
688
664
689
665
template <typename ...ArgTypes>
690
666
static InFlightDiagnostic diagnose (StringRef interfacePath,
0 commit comments