]> granicus.if.org Git - clang/commitdiff
Expose -fobjc-nonfragile-abi2 as a top-level clang driver option. Fixes <rdar:/...
authorTed Kremenek <kremenek@apple.com>
Thu, 20 May 2010 02:12:37 +0000 (02:12 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 20 May 2010 02:12:37 +0000 (02:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104205 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 334a05d47dc5754a843043e1776b58fb2ec62849..602bd8fa8b03207ac01161bac5c861e8f1be4a79 100644 (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,