diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-05-20 02:12:37 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-05-20 02:12:37 +0000 |
commit | c3e31d66f1a6f396fb08b0cabfc47c34705c01b1 (patch) | |
tree | 6be6b5e65b54ad44f9e582cd30382efbc0b2711d /lib/Driver/Tools.cpp | |
parent | ea1471e0e967548c596a71469702f8846dbaf3c0 (diff) |
Expose -fobjc-nonfragile-abi2 as a top-level clang driver option. Fixes <rdar://problem/8007063>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 334a05d47d..602bd8fa8b 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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, |