[cfe-commits] r82478 - in /cfe/trunk: include/clang/Basic/LangOptions.h test/CodeGenObjC/objc2-ivar-assign.m test/CodeGenObjC/objc2-strong-cast-2.m test/CodeGenObjC/objc2-strong-cast-3.m test/CodeGenObjC/objc2-strong-cast-4.m test/CodeGenObjC/objc2-write-barrier-3.m test/CodeGenObjC/objc2-write-barrier-4.m

Fariborz Jahanian fjahanian at apple.com
Mon Sep 21 13:17:40 PDT 2009


Author: fjahanian
Date: Mon Sep 21 15:17:37 2009
New Revision: 82478

URL: http://llvm.org/viewvc/llvm-project?rev=82478&view=rev
Log:
-fobjc-newgc-api is now the default.


Added:
    cfe/trunk/test/CodeGenObjC/objc2-ivar-assign.m
      - copied, changed from r82456, cfe/trunk/test/CodeGenObjC/objc2-strong-cast-3.m
    cfe/trunk/test/CodeGenObjC/objc2-write-barrier-3.m
      - copied, changed from r82456, cfe/trunk/test/CodeGenObjC/objc2-strong-cast-4.m
    cfe/trunk/test/CodeGenObjC/objc2-write-barrier-4.m
      - copied, changed from r82456, cfe/trunk/test/CodeGenObjC/objc2-strong-cast-2.m
Removed:
    cfe/trunk/test/CodeGenObjC/objc2-strong-cast-2.m
    cfe/trunk/test/CodeGenObjC/objc2-strong-cast-3.m
    cfe/trunk/test/CodeGenObjC/objc2-strong-cast-4.m
Modified:
    cfe/trunk/include/clang/Basic/LangOptions.h

Modified: cfe/trunk/include/clang/Basic/LangOptions.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/LangOptions.h?rev=82478&r1=82477&r2=82478&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/LangOptions.h (original)
+++ cfe/trunk/include/clang/Basic/LangOptions.h Mon Sep 21 15:17:37 2009
@@ -147,7 +147,7 @@
 
     OverflowChecking = 0;
     ObjCGCBitmapPrint = 0;
-    ObjCNewGCAPI = 0;
+    ObjCNewGCAPI = 1;
 
     InstantiationDepth = 99;
 

Copied: cfe/trunk/test/CodeGenObjC/objc2-ivar-assign.m (from r82456, cfe/trunk/test/CodeGenObjC/objc2-strong-cast-3.m)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-ivar-assign.m?p2=cfe/trunk/test/CodeGenObjC/objc2-ivar-assign.m&p1=cfe/trunk/test/CodeGenObjC/objc2-strong-cast-3.m&r1=82456&r2=82478&rev=82478&view=diff

==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-strong-cast-3.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc2-ivar-assign.m Mon Sep 21 15:17:37 2009
@@ -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

Removed: cfe/trunk/test/CodeGenObjC/objc2-strong-cast-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-strong-cast-2.m?rev=82477&view=auto

==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-strong-cast-2.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc2-strong-cast-2.m (removed)
@@ -1,27 +0,0 @@
-// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s &&
-// RUN: grep objc_assign_strongCast %t | count 4 &&
-// RUN: true
-
- at interface A
- at end
-
-typedef struct s0 {
-  A *a[4];
-} T;
-
-T g0;
-
-void f0(id x) {
-  g0.a[0] = x;
-}
-
-void f1(id x) {
-  ((T*) &g0)->a[0] = x;
-}
-
-void f2(unsigned idx)
-{
-   id *keys;
-   keys[idx] = 0;
-}
-

Removed: cfe/trunk/test/CodeGenObjC/objc2-strong-cast-3.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-strong-cast-3.m?rev=82477&view=auto

==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-strong-cast-3.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc2-strong-cast-3.m (removed)
@@ -1,41 +0,0 @@
-// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s &&
-// RUN: grep objc_assign_strongCast %t | count 6 &&
-// RUN: true
-
- at interface I @end
-
-typedef I TI;
-typedef I* TPI;
-
-typedef id ID;
-
- at interface MyClass {
-}
-
- at property id property;
- at property I* propertyI;
-
- at property TI* propertyTI;
-
- at property TPI propertyTPI;
-
- at property ID propertyID;
- at end
-
- at implementation MyClass
-	@synthesize property=_property;
-        @synthesize propertyI;
-        @synthesize propertyTI=_propertyTI;
-        @synthesize propertyTPI=_propertyTPI;
-         @synthesize propertyID = _propertyID;
- at end
-
-int main () {
-    MyClass *myObj;
-    myObj.property = 0;
-    myObj.propertyI = 0;
-    myObj.propertyTI = 0;
-    myObj.propertyTPI = 0;
-    myObj.propertyID = 0;
-    return 0;
-}

Removed: cfe/trunk/test/CodeGenObjC/objc2-strong-cast-4.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-strong-cast-4.m?rev=82477&view=auto

==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-strong-cast-4.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc2-strong-cast-4.m (removed)
@@ -1,46 +0,0 @@
-// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s &&
-// RUN: grep objc_assign_strongCast %t | count 8 &&
-// RUN: true
-
-struct Slice {
-    void *__strong * items;
-};
-
-typedef struct Slice Slice;
-
- at interface ISlice {
- at public
-    void *__strong * IvarItem;
-}
- at end
-
-typedef void (^observer_block_t)(id object);
- at interface Observer  {
- at public
-    observer_block_t block;
-}
- at end
-
-
-void foo (int i) {
-    // storing into an array of strong pointer types.
-    void *__strong* items;
-    items[i] = 0;
-
-    // storing indirectly into an array of strong pointer types.
-    void *__strong* *vitems;
-    *vitems[i] = 0;
-
-    Slice *slice;
-    slice->items = 0;
-    // storing into a struct element of an array of strong pointer types.
-    slice->items[i] = 0;
-
-    ISlice *islice;
-    islice->IvarItem = 0;
-    // Storing into an ivar of an array of strong pointer types.
-    islice->IvarItem[i] = (void*)0;
-
-    Observer *observer;
-    observer->block = 0;
-}

Copied: cfe/trunk/test/CodeGenObjC/objc2-write-barrier-3.m (from r82456, cfe/trunk/test/CodeGenObjC/objc2-strong-cast-4.m)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-write-barrier-3.m?p2=cfe/trunk/test/CodeGenObjC/objc2-write-barrier-3.m&p1=cfe/trunk/test/CodeGenObjC/objc2-strong-cast-4.m&r1=82456&r2=82478&rev=82478&view=diff

==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-strong-cast-4.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc2-write-barrier-3.m Mon Sep 21 15:17:37 2009
@@ -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 {

Copied: cfe/trunk/test/CodeGenObjC/objc2-write-barrier-4.m (from r82456, cfe/trunk/test/CodeGenObjC/objc2-strong-cast-2.m)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-write-barrier-4.m?p2=cfe/trunk/test/CodeGenObjC/objc2-write-barrier-4.m&p1=cfe/trunk/test/CodeGenObjC/objc2-strong-cast-2.m&r1=82456&r2=82478&rev=82478&view=diff

==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-strong-cast-2.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc2-write-barrier-4.m Mon Sep 21 15:17:37 2009
@@ -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





More information about the cfe-commits mailing list