@@ -62,21 +62,11 @@ void Evaluator::registerRequestFunctions(
6262 requestFunctionsByZone.push_back ({zoneID, functions});
6363}
6464
65- static evaluator::DependencyRecorder::Mode
66- computeDependencyModeFromFlags (const LangOptions &opts) {
67- using Mode = evaluator::DependencyRecorder::Mode;
68- if (opts.DirectIntramoduleDependencies ) {
69- return Mode::DirectDependencies;
70- }
71-
72- return Mode::LegacyCascadingDependencies;
73- }
74-
7565Evaluator::Evaluator (DiagnosticEngine &diags, const LangOptions &opts)
7666 : diags(diags),
7767 debugDumpCycles(opts.DebugDumpCycles),
7868 buildDependencyGraph(opts.BuildRequestDependencyGraph),
79- recorder{computeDependencyModeFromFlags (opts) } {}
69+ recorder{evaluator::DependencyRecorder::Mode::DirectDependencies } {}
8070
8171void Evaluator::emitRequestEvaluatorGraphViz (llvm::StringRef graphVizPath) {
8272 std::error_code error;
@@ -444,10 +434,6 @@ void evaluator::DependencyRecorder::replay(
444434 assert (!isRecording && " Probably not a good idea to allow nested recording" );
445435
446436 auto source = getActiveDependencySourceOrNull ();
447- if (mode == Mode::LegacyCascadingDependencies) {
448- return ;
449- }
450-
451437 if (source.isNull () || !source.get ()->isPrimary ()) {
452438 return ;
453439 }
@@ -496,7 +482,6 @@ void evaluator::DependencyRecorder::replay(
496482void evaluator::DependencyRecorder::unionNearestCachedRequest (
497483 ArrayRef<swift::ActiveRequest> stack,
498484 const DependencyCollector::ReferenceSet &scratch) {
499- assert (mode != Mode::LegacyCascadingDependencies);
500485 auto nearest = std::find_if (stack.rbegin (), stack.rend (),
501486 [](const auto &req){ return req.isCached (); });
502487 if (nearest == stack.rend ()) {
0 commit comments