[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:
Xi Ge
2018-08-28 17:03:48 -07:00
parent 6ffe644cfc
commit ce29c64964
8 changed files with 23 additions and 25 deletions

View File

@@ -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)) {