[cfe-commits] r118786 - /cfe/trunk/lib/Driver/Tools.cpp

Daniel Dunbar daniel at zuster.org
Thu Nov 11 08:08:59 PST 2010


Author: ddunbar
Date: Thu Nov 11 10:08:59 2010
New Revision: 118786

URL: http://llvm.org/viewvc/llvm-project?rev=118786&view=rev
Log:
Driver: Allow build system override of default non-fragile ABI version.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=118786&r1=118785&r2=118786&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Nov 11 10:08:59 2010
@@ -1425,7 +1425,11 @@
                        options::OPT_fno_objc_nonfragile_abi,
                        getToolChain().IsObjCNonFragileABIDefault())) {
         // Determine the non-fragile ABI version to use.
+#ifdef DISABLE_DEFAULT_NONFRAGILEABI_TWO
+        unsigned NonFragileABIVersion = 1;
+#else
         unsigned NonFragileABIVersion = 2;
+#endif
 
         if (Arg *A = Args.getLastArg(
               options::OPT_fobjc_nonfragile_abi_version_EQ)) {





More information about the cfe-commits mailing list