<rdar://problem/20402026> Remove scope entry/exit log entries

Don't emit scope entry/exit logging code in instrumentation for
playgrounds if -playground-high-performance option is passed.

Swift SVN r27046
This commit is contained in:
Chris Willmore
2015-04-06 22:09:20 +00:00
parent c5f65bd7a4
commit d3a977d824
7 changed files with 71 additions and 10 deletions

View File

@@ -112,6 +112,8 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
Opts.PlaygroundTransform |= Args.hasArg(OPT_playground);
if (Args.hasArg(OPT_disable_playground_transform))
Opts.PlaygroundTransform = false;
Opts.PlaygroundHighPerformance |=
Args.hasArg(OPT_playground_high_performance);
if (const Arg *A = Args.getLastArg(OPT_help, OPT_help_hidden)) {
if (A->getOption().matches(OPT_help)) {