mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Evaluator] Refactor evaluator's GraphViz output to the destructor of the evaluator. NFC
This allows us to output dependency-graph while using the compiler in other tools, like swift-ide-test, sourcekitd-test, etc.
This commit is contained in:
@@ -259,6 +259,10 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
Opts.EvaluatorCycleDiagnostics = CycleDiagnosticKind::DebugDiagnose;
|
||||
}
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_output_request_graphviz)) {
|
||||
Opts.RequestEvaluatorGraphVizPath = A->getValue();
|
||||
}
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_solver_memory_threshold)) {
|
||||
unsigned threshold;
|
||||
if (StringRef(A->getValue()).getAsInteger(10, threshold)) {
|
||||
|
||||
Reference in New Issue
Block a user