mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Only build request dependency graph if frontend is run with -build-request-dependency-graph
This adds a measurable amount of runtime overhead, but it's only needed for debugging.
This commit is contained in:
@@ -392,6 +392,9 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
if (Args.getLastArg(OPT_debug_cycles))
|
||||
Opts.DebugDumpCycles = true;
|
||||
|
||||
if (Args.getLastArg(OPT_build_request_dependency_graph))
|
||||
Opts.BuildRequestDependencyGraph = true;
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_output_request_graphviz)) {
|
||||
Opts.RequestEvaluatorGraphVizPath = A->getValue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user