[Frontend] Add option and test for the "-playground without the transform" mode.

Swift SVN r22916
This commit is contained in:
Argyrios Kyrtzidis
2014-10-24 17:41:17 +00:00
parent 0e55e054b9
commit ec4e5c0543
3 changed files with 15 additions and 1 deletions

View File

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