Expose -fobjc-nonfragile-abi2 as a top-level clang driver option. Fixes <rdar://problem/8007063>.

llvm-svn: 104205
This commit is contained in:
Ted Kremenek 2010-05-20 02:12:37 +00:00
parent 1e19eab963
commit bd7b3ccbf8
1 changed files with 5 additions and 0 deletions

View File

@ -1280,6 +1280,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
CmdArgs.push_back("-fobjc-dispatch-method=non-legacy");
}
}
// FIXME: -fobjc-nonfragile-abi2 is a transient option meant to expose
// features in testing. It will eventually be removed.
if (Args.hasArg(options::OPT_fobjc_nonfragile_abi2))
CmdArgs.push_back("-fobjc-nonfragile-abi2");
}
if (!Args.hasFlag(options::OPT_fassume_sane_operator_new,