Add a frontend option -enable-native-blocks to stage native block generation.

Swift SVN r16372
This commit is contained in:
Joe Groff
2014-04-15 17:51:08 +00:00
parent 1e75561807
commit 920aa60570
3 changed files with 12 additions and 1 deletions

View File

@@ -515,6 +515,10 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
if (Args.hasArg(OPT_debugger_support)) {
Opts.DebuggerSupport = true;
}
if (Args.hasArg(OPT_enable_native_blocks)) {
Opts.EnableNativeBlocks = true;
}
if (auto A = Args.getLastArg(OPT_enable_objc_attr_requires_objc_module,
OPT_disable_objc_attr_requires_objc_module)) {