]> granicus.if.org Git - clang/commitdiff
-fobjc-newgc-api is now the default.
authorFariborz Jahanian <fjahanian@apple.com>
Mon, 21 Sep 2009 20:17:37 +0000 (20:17 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Mon, 21 Sep 2009 20:17:37 +0000 (20:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82478 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/LangOptions.h
test/CodeGenObjC/objc2-ivar-assign.m [moved from test/CodeGenObjC/objc2-strong-cast-3.m with 93% similarity]
test/CodeGenObjC/objc2-write-barrier-3.m [moved from test/CodeGenObjC/objc2-strong-cast-4.m with 90% similarity]
test/CodeGenObjC/objc2-write-barrier-4.m [moved from test/CodeGenObjC/objc2-strong-cast-2.m with 74% similarity]

index 8f60b47f4cdc93b89a12fefbb67e0fa828eb8d21..1dab6154292d1333e8c33d341a9fe4498c368c12 100644 (file)
@@ -147,7 +147,7 @@ public:
 
     OverflowChecking = 0;
     ObjCGCBitmapPrint = 0;
-    ObjCNewGCAPI = 0;
+    ObjCNewGCAPI = 1;
 
     InstantiationDepth = 99;
 
similarity index 93%
rename from test/CodeGenObjC/objc2-strong-cast-3.m
rename to test/CodeGenObjC/objc2-ivar-assign.m
index 1b5a58cf188485e54bffe7c9c9d86cf297201966..cfdf87f2f12b5834edd7ea3cf66d7d8f154fa482 100644 (file)
@@ -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
similarity index 90%
rename from test/CodeGenObjC/objc2-strong-cast-4.m
rename to test/CodeGenObjC/objc2-write-barrier-3.m
index 6603e32465739aece32349a0bd4ea57a52c3f9ea..2fb416b79b2f01bdf9762af8a7898fa37a85ce4d 100644 (file)
@@ -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 {
similarity index 74%
rename from test/CodeGenObjC/objc2-strong-cast-2.m
rename to test/CodeGenObjC/objc2-write-barrier-4.m
index c4bff4b1bc0d5f00adc406588937f34998fc6a71..f96a233787b0ae6fa918c3b45398b335366fd3ec 100644 (file)
@@ -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