@@ -62,21 +62,11 @@ void Evaluator::registerRequestFunctions(
62
62
requestFunctionsByZone.push_back ({zoneID, functions});
63
63
}
64
64
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
-
75
65
Evaluator::Evaluator (DiagnosticEngine &diags, const LangOptions &opts)
76
66
: diags(diags),
77
67
debugDumpCycles(opts.DebugDumpCycles),
78
68
buildDependencyGraph(opts.BuildRequestDependencyGraph),
79
- recorder{computeDependencyModeFromFlags (opts) } {}
69
+ recorder{evaluator::DependencyRecorder::Mode::DirectDependencies } {}
80
70
81
71
void Evaluator::emitRequestEvaluatorGraphViz (llvm::StringRef graphVizPath) {
82
72
std::error_code error;
@@ -444,10 +434,6 @@ void evaluator::DependencyRecorder::replay(
444
434
assert (!isRecording && " Probably not a good idea to allow nested recording" );
445
435
446
436
auto source = getActiveDependencySourceOrNull ();
447
- if (mode == Mode::LegacyCascadingDependencies) {
448
- return ;
449
- }
450
-
451
437
if (source.isNull () || !source.get ()->isPrimary ()) {
452
438
return ;
453
439
}
@@ -496,7 +482,6 @@ void evaluator::DependencyRecorder::replay(
496
482
void evaluator::DependencyRecorder::unionNearestCachedRequest (
497
483
ArrayRef<swift::ActiveRequest> stack,
498
484
const DependencyCollector::ReferenceSet &scratch) {
499
- assert (mode != Mode::LegacyCascadingDependencies);
500
485
auto nearest = std::find_if (stack.rbegin (), stack.rend (),
501
486
[](const auto &req){ return req.isCached (); });
502
487
if (nearest == stack.rend ()) {
0 commit comments