From 90b4fd48a6b42c2fc7b162a5e61e5f8bfa17d4ee Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Mon, 21 Sep 2009 20:17:37 +0000 Subject: [PATCH] -fobjc-newgc-api is now the default. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82478 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/LangOptions.h | 2 +- .../CodeGenObjC/{objc2-strong-cast-3.m => objc2-ivar-assign.m} | 2 +- .../{objc2-strong-cast-4.m => objc2-write-barrier-3.m} | 3 ++- .../{objc2-strong-cast-2.m => objc2-write-barrier-4.m} | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) rename test/CodeGenObjC/{objc2-strong-cast-3.m => objc2-ivar-assign.m} (93%) rename test/CodeGenObjC/{objc2-strong-cast-4.m => objc2-write-barrier-3.m} (90%) rename test/CodeGenObjC/{objc2-strong-cast-2.m => objc2-write-barrier-4.m} (74%) diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h index 8f60b47f4c..1dab615429 100644 --- a/include/clang/Basic/LangOptions.h +++ b/include/clang/Basic/LangOptions.h @@ -147,7 +147,7 @@ public: OverflowChecking = 0; ObjCGCBitmapPrint = 0; - ObjCNewGCAPI = 0; + ObjCNewGCAPI = 1; InstantiationDepth = 99; diff --git a/test/CodeGenObjC/objc2-strong-cast-3.m b/test/CodeGenObjC/objc2-ivar-assign.m similarity index 93% rename from test/CodeGenObjC/objc2-strong-cast-3.m rename to test/CodeGenObjC/objc2-ivar-assign.m index 1b5a58cf18..cfdf87f2f1 100644 --- a/test/CodeGenObjC/objc2-strong-cast-3.m +++ b/test/CodeGenObjC/objc2-ivar-assign.m @@ -1,5 +1,5 @@ // RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s && -// RUN: grep objc_assign_strongCast %t | count 6 && +// RUN: grep objc_assign_ivar %t | count 6 && // RUN: true @interface I @end diff --git a/test/CodeGenObjC/objc2-strong-cast-4.m b/test/CodeGenObjC/objc2-write-barrier-3.m similarity index 90% rename from test/CodeGenObjC/objc2-strong-cast-4.m rename to test/CodeGenObjC/objc2-write-barrier-3.m index 6603e32465..2fb416b79b 100644 --- a/test/CodeGenObjC/objc2-strong-cast-4.m +++ b/test/CodeGenObjC/objc2-write-barrier-3.m @@ -1,5 +1,6 @@ // RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s && -// RUN: grep objc_assign_strongCast %t | count 8 && +// RUN: grep objc_assign_ivar %t | count 3 && +// RUN: grep objc_assign_strongCast %t | count 6 && // RUN: true struct Slice { diff --git a/test/CodeGenObjC/objc2-strong-cast-2.m b/test/CodeGenObjC/objc2-write-barrier-4.m similarity index 74% rename from test/CodeGenObjC/objc2-strong-cast-2.m rename to test/CodeGenObjC/objc2-write-barrier-4.m index c4bff4b1bc..f96a233787 100644 --- a/test/CodeGenObjC/objc2-strong-cast-2.m +++ b/test/CodeGenObjC/objc2-write-barrier-4.m @@ -1,5 +1,6 @@ // RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s && -// RUN: grep objc_assign_strongCast %t | count 4 && +// RUN: grep objc_assign_global %t | count 3 && +// RUN: grep objc_assign_strongCast %t | count 2 && // RUN: true @interface A -- 2.50.1