[frontend] Added support for -disable-llvm-arc-opts.

Adjusted how this option is handled: it is now set in IRGenOptions. If set,
this prevents the relevant passes from being added at all, instead of making
them no-ops.

Swift SVN r13005
This commit is contained in:
Connor Wakamo
2014-01-27 21:22:46 +00:00
parent 9946080888
commit 38e1fd44af
5 changed files with 18 additions and 15 deletions

View File

@@ -592,6 +592,10 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
Opts.DisableLLVMOptzns = true;
}
if (Args.hasArg(OPT_disable_llvm_arc_opts)) {
Opts.DisableLLVMARCOpts = true;
}
if (Args.hasArg(OPT_enable_dynamic_value_type_layout)) {
Opts.EnableDynamicValueTypeLayout = true;
}