[ClangImporter] Start importing Objective-C references using UncheckedOptional.

This is hidden behind the frontend flag -enable-objc-optional. Use -Xfrontend
when invoking the Swift driver.

Part of <rdar://problem/15189135>

Swift SVN r14332
This commit is contained in:
Jordan Rose
2014-02-25 02:04:02 +00:00
parent 8ff9aa61ff
commit 0f71586952
10 changed files with 51 additions and 15 deletions

View File

@@ -534,6 +534,8 @@ static bool ParseClangImporterArgs(ClangImporterOptions &Opts, ArgList &Args,
Opts.ExtraArgs.push_back(A->getValue());
}
Opts.EnableOptional = Args.hasArg(OPT_enable_objc_optional);
return false;
}