aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-09-21 20:17:37 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-09-21 20:17:37 +0000
commit90b4fd48a6b42c2fc7b162a5e61e5f8bfa17d4ee (patch)
tree842bc6af6fcdd6ab4c5146f59bf99d3ddd5b85bd
parent456c4a17f4f02d660188dc9b2619c160dfbe3b68 (diff)
-fobjc-newgc-api is now the default.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82478 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Basic/LangOptions.h2
-rw-r--r--test/CodeGenObjC/objc2-ivar-assign.m (renamed from test/CodeGenObjC/objc2-strong-cast-3.m)2
-rw-r--r--test/CodeGenObjC/objc2-write-barrier-3.m (renamed from test/CodeGenObjC/objc2-strong-cast-4.m)3
-rw-r--r--test/CodeGenObjC/objc2-write-barrier-4.m (renamed from test/CodeGenObjC/objc2-strong-cast-2.m)3
4 files changed, 6 insertions, 4 deletions
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
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
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
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