Make nonfragile-abi the default for darwin's 64bit
abi for objective-c programs.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64386 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp
index 80fbaae..c72982b 100644
--- a/lib/Basic/Targets.cpp
+++ b/lib/Basic/Targets.cpp
@@ -149,8 +149,12 @@
     return;
   
   // Blocks default to on for 10.6 (darwin10) and beyond.
-  if (Maj > 9)
+  // As does nonfragile-abi for 64bit mode
+  if (Maj > 9) {
     Opts.Blocks = 1;
+    if (Opts.ObjC1 && !strncmp(Triple, "x86_64", 6))
+      Opts.ObjCNonFragileABI = 1;
+  }
 }