[cfe-commits] r64386 - /cfe/trunk/lib/Basic/Targets.cpp
Fariborz Jahanian
fjahanian at apple.com
Thu Feb 12 09:54:33 PST 2009
Author: fjahanian
Date: Thu Feb 12 11:54:33 2009
New Revision: 64386
URL: http://llvm.org/viewvc/llvm-project?rev=64386&view=rev
Log:
Make nonfragile-abi the default for darwin's 64bit
abi for objective-c programs.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=64386&r1=64385&r2=64386&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Thu Feb 12 11:54:33 2009
@@ -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;
+ }
}
More information about the cfe-commits
mailing list