From 240f2b7851cf26cfd826d34553cc32767311f6f3 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Tue, 24 Feb 2009 23:34:44 +0000 Subject: patch for two things. make sure objc2's nonfragile abi is enacted for Leopard too. add -fobjc-gc-only flag to the image_info symbol. llvm-svn: 65413 --- clang/lib/Basic/Targets.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clang/lib/Basic/Targets.cpp') diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index b2d4db18441..455cdfa7ca6 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -152,11 +152,12 @@ static void GetDarwinLanguageOptions(LangOptions &Opts, // Blocks default to on for 10.6 (darwin10) and beyond. // As does nonfragile-abi for 64bit mode - if (Maj > 9) { + if (Maj > 9) Opts.Blocks = 1; + + if (Maj >= 9) if (Opts.ObjC1 && !strncmp(Triple, "x86_64", 6)) Opts.ObjCNonFragileABI = 1; - } } -- cgit v1.2.3