]> granicus.if.org Git - clang/commitdiff
Fold -fobjc-nonfragile-abi2 into -fobjc-nonfragile-abi.
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 4 Jan 2011 20:05:20 +0000 (20:05 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 4 Jan 2011 20:05:20 +0000 (20:05 +0000)
// rdar://8818375

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122831 91177308-0d34-0410-b5e6-96231b3b80d8

22 files changed:
include/clang/Driver/CC1Options.td
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/Analysis/unused-ivars.m
test/CodeGenObjC/debug-info-default-synth-ivar.m
test/CodeGenObjC/debug-info-getter-name.m
test/CodeGenObjC/default-property-synthesis.m
test/CodeGenObjC/ivar-layout-nonfragile-abi2.m
test/CodeGenObjC/objc2-nonfragile-abi-impl.m
test/Index/complete-synthesized.m
test/SemaObjC/default-synthesize-1.m
test/SemaObjC/default-synthesize.m
test/SemaObjC/direct-synthesized-ivar-access.m
test/SemaObjC/duplicate-ivar-in-class-extension.m
test/SemaObjC/ivar-in-class-extension.m
test/SemaObjC/ivar-in-implementations.m
test/SemaObjC/property-and-class-extension.m
test/SemaObjC/property-and-ivar-use.m
test/SemaObjC/provisional-ivar-lookup.m
test/SemaObjC/synth-provisional-ivars.m
test/SemaObjC/synthesized-ivar.m
test/SemaObjC/warn-implicit-atomic-property.m

index 50bfc5af36d988591aa03e30177ea1b86d8d9a7e..5ae7f328378587d4c491c758daa0859fc268bd51 100644 (file)
@@ -469,8 +469,6 @@ def print_ivar_layout : Flag<"-print-ivar-layout">,
   HelpText<"Enable Objective-C Ivar layout bitmap print trace">;
 def fobjc_nonfragile_abi : Flag<"-fobjc-nonfragile-abi">,
   HelpText<"enable objective-c's nonfragile abi">;
-def fobjc_nonfragile_abi2 : Flag<"-fobjc-nonfragile-abi2">,
-  HelpText<"enable objective-c's enhanced nonfragile abi">;
 def ftrapv : Flag<"-ftrapv">,
   HelpText<"Trap on integer overflow">;
 def ftrapv_handler : Separate<"-ftrapv-handler">,
index cee00edd2dfa4e026fdd452cfa2bb2fcc2d9901c..9d9179b621af8794b193fffced9f9665484118d5 100644 (file)
@@ -1468,10 +1468,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
     }
 
     if (Version == 2 || Version == 3) {
-      if (Version == 2)
-        CmdArgs.push_back("-fobjc-nonfragile-abi");
-      else
-        CmdArgs.push_back("-fobjc-nonfragile-abi2");
+      CmdArgs.push_back("-fobjc-nonfragile-abi");
 
       // -fobjc-dispatch-method is only relevant with the nonfragile-abi, and
       // legacy is the default.
index 29aac8a9daa9d96f194c21eb5c7f09329b50b698..48121a1770ec61657283fd82f6fb49ccc3e5745a 100644 (file)
@@ -549,7 +549,7 @@ static void LangOptsToArgs(const LangOptions &Opts,
   if (Opts.ObjCNonFragileABI)
     Res.push_back("-fobjc-nonfragile-abi");
   if (Opts.ObjCNonFragileABI2)
-    Res.push_back("-fobjc-nonfragile-abi2");
+    Res.push_back("-fobjc-nonfragile-abi");
   if (Opts.ObjCDefaultSynthProperties)
     Res.push_back("-fobjc-default-synthesize-properties");
   // NoInline is implicit.
@@ -1423,9 +1423,8 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
   Opts.ObjCConstantStringClass =
     Args.getLastArgValue(OPT_fconstant_string_class);
   Opts.ObjCNonFragileABI = Args.hasArg(OPT_fobjc_nonfragile_abi);
-  Opts.ObjCNonFragileABI2 = Args.hasArg(OPT_fobjc_nonfragile_abi2);
-  if (Opts.ObjCNonFragileABI2)
-    Opts.ObjCNonFragileABI = true;
+  if (Opts.ObjCNonFragileABI)
+    Opts.ObjCNonFragileABI2 = true;
   Opts.ObjCDefaultSynthProperties =
     Args.hasArg(OPT_fobjc_default_synthesize_properties);
   Opts.CatchUndefined = Args.hasArg(OPT_fcatch_undefined_behavior);
index c88d14880bd0dd51f5f2e01f88284c97a72a11e4..20531efaad663830b59f6a8a890222c9f632016b 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fobjc-nonfragile-abi2 -fblocks -analyze -analyzer-check-objc-unused-ivars %s -verify
+// RUN: %clang_cc1 -fobjc-nonfragile-abi -fblocks -analyze -analyzer-check-objc-unused-ivars %s -verify
 
 //===--- BEGIN: Delta-debugging reduced headers. --------------------------===//
 
index a74ee3416881ecf48fedfe3339d85f44ff2edc89..967a361d6c48e0440f9a75f2b8a3760460d5b19f 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi2 -fobjc-default-synthesize-properties -emit-llvm -g %s -o %t 
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fobjc-default-synthesize-properties -emit-llvm -g %s -o %t 
 // RUN: grep DW_TAG_member %t | count 5
 // rdar://8493239
 
index 05619aeccd2014603b8c7adc25166d45f8eed432..0263f112aeb459a79031819d58e354270153f769 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi2 -S -g %s -o %t
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -S -g %s -o %t
 // RUN: grep "\[InstanceVariablesEverywhereButTheInterface someString\]" %t | count 6
 
 //rdar: //8498026
index b3eeb22004aeb9f1fea3db07b1c4cedeee582854..72acb768a11a2fd5201d2b1d6fb5f260674664f8 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi2 -emit-llvm -o %t %s
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -emit-llvm -o %t %s
 // rdar://7923851.
 
 // Superclass declares property. Subclass redeclares the same property.
index b474caa7a48a12032b83cc175ae343045b45b749..012ccadd9f9257a58fad92a520c59f67c2f9b839 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi2 -emit-llvm -o %t %s
-// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi2 -emit-llvm -o %t %s
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -emit-llvm -o %t %s
+// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -emit-llvm -o %t %s
 // rdar: // 7824380
 
 @interface Super {
index ff943303b74660be064b87aa5e5b6f1510be70da..cb830b8dcc9203554aa7c37e4f773593814aa83a 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi2 -emit-llvm -o %t %s
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -emit-llvm -o %t %s
 // rdar://7547942.
 
 @interface Base @end
index 2c26d36a34459205516b3883ce26d2c5eece5624..1a4858449f427524be9f751db6e57960426869b1 100644 (file)
 }
 @end
 
-// RUN: c-index-test -code-completion-at=%s:24:1 -Xclang -fobjc-nonfragile-abi2 %s | FileCheck -check-prefix=CHECK-CC1 %s
+// RUN: c-index-test -code-completion-at=%s:24:1 -Xclang -fobjc-nonfragile-abi %s | FileCheck -check-prefix=CHECK-CC1 %s
 // CHECK-CC1: NotImplemented:{TypedText _Bool} (50)
 // CHECK-CC1: ObjCIvarDecl:{ResultType float}{TypedText _prop2} (35)
 // CHECK-CC1-NOT: prop2
 // CHECK-CC1: ObjCPropertyDecl:{ResultType short}{TypedText prop3} (35)
 // CHECK-CC1: ObjCPropertyDecl:{ResultType double}{TypedText prop4} (35)
 
-// RUN: c-index-test -code-completion-at=%s:30:2 -Xclang -fobjc-nonfragile-abi2 %s | FileCheck -check-prefix=CHECK-CC2 %s
+// RUN: c-index-test -code-completion-at=%s:30:2 -Xclang -fobjc-nonfragile-abi %s | FileCheck -check-prefix=CHECK-CC2 %s
 // CHECK-CC2: NotImplemented:{TypedText _Bool} (50)
 // CHECK-CC2: ObjCIvarDecl:{ResultType float}{TypedText _prop2} (35)
 // CHECK-CC2-NOT: prop3
 // CHECK-CC2: ObjCPropertyDecl:{ResultType double}{TypedText prop4} (35)
 
-// RUN: c-index-test -code-completion-at=%s:34:2 -Xclang -fobjc-nonfragile-abi2 %s | FileCheck -check-prefix=CHECK-CC3 %s
+// RUN: c-index-test -code-completion-at=%s:34:2 -Xclang -fobjc-nonfragile-abi %s | FileCheck -check-prefix=CHECK-CC3 %s
 // CHECK-CC3: NotImplemented:{TypedText _Bool} (50)
 // CHECK-CC3: ObjCIvarDecl:{ResultType float}{TypedText _prop2} (35)
 // CHECK-CC3: ObjCPropertyDecl:{ResultType double}{TypedText prop4}
index c364c41fc78669b8b92ae76f4fafbba7534632b1..a55834dd301665b5b37c2afc937ca237f4a6b294 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi2 -fobjc-default-synthesize-properties -verify %s
+// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi -fobjc-default-synthesize-properties -verify %s
 
 @interface NSObject 
 - (void) release;
index 1477478dfb82d16facc1bf6507f100bc3258b337..33e3bd6f346458a3295052c4dd413ac1cc354d48 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi2 -fobjc-default-synthesize-properties -verify %s
+// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi -fobjc-default-synthesize-properties -verify %s
 
 @interface NSString @end
 
index 4dedafc29ed1db6211c57a61b411445947c1b694..a72fb5f19c7afca0909454c04f0f23226f11d7b3 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -Wnonfragile-abi2 -fsyntax-only -fobjc-nonfragile-abi2 -fobjc-default-synthesize-properties -verify %s
+// RUN: %clang_cc1 -Wnonfragile-abi2 -fsyntax-only -fobjc-nonfragile-abi -fobjc-default-synthesize-properties -verify %s
 // rdar://8673791
 
 @interface I {
index b66736f330f47442e3bd0431ecac964cae35ac23..0507b352f602f7e82560a2cb74b663d0fd9116b6 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi2 -verify %s
+// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi -verify %s
 
 @interface Root @end
 
index 4130d8f962527ae1cfdbdaa7a28cc9a95b3a57c5..b5772f6a4ca34300297dc01382dbf4d371e05e63 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi2 -verify %s
+// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi -verify %s
 
 @interface SomeClass  @end
 
index 4060526b44d5a022b27ad1fc761174ca8f25c61e..74db3224007a611e6c4b604c39aefb0f66e76db3 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi2 -verify %s
+// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi -verify %s
 
 @interface Super @end
 
index 51bf8de77e2bd9b0730d5ab087f83055f61979b4..926538af61c9ca073256a6aee640639148f1ab3d 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi2 -verify %s
+// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi -verify %s
 
 /**
 When processing @synthesize, treat ivars in a class extension the same as ivars in the class @interface, 
index b9235c1dd3d490ae55a530a599805bbf07c0bdcf..70e553469907e4f4c578776379445989cc846d23 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi2 -verify %s
+// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi -verify %s
 // Do not issue error if 'ivar' used previously belongs to the inherited class
 // and has same name as @dynalic property in current class.
 
index 6d57885d61f714bdccaa18f85ad7d5c3e1a4cdc0..04d6a41930955448628d497841f273369f732b0a 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1  -fsyntax-only -fobjc-default-synthesize-properties -fobjc-nonfragile-abi2 -verify %s
+// RUN: %clang_cc1  -fsyntax-only -fobjc-default-synthesize-properties -fobjc-nonfragile-abi -verify %s
 
 // rdar:// 8565343
 @interface Foo  {
index 482ccc1e64707287038c545c0df8135624df4c60..e8179aaa00ddbfb1e9d6d9a7871036fe65a6b2a7 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi2 -fobjc-default-synthesize-properties -verify %s
+// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi -fobjc-default-synthesize-properties -verify %s
 
 int bar;
 
index 06530144b85f3f2c3e65f7172ea33d5d7328ba55..3bc372bcd81e55d6c8b4365876e34d9ba89e67bd 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi2 -fobjc-default-synthesize-properties -verify %s
+// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi -fobjc-default-synthesize-properties -verify %s
 @interface I
 {
 }
index ad9cbd60678ac8b67cfc80db89d8d40151de4263..0b4590a42db7bbb98c8c717ad6d39170a43c3ef6 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -Wimplicit-atomic-properties -fobjc-nonfragile-abi2 -fobjc-default-synthesize-properties -verify %s
+// RUN: %clang_cc1 -fsyntax-only -Wimplicit-atomic-properties -fobjc-nonfragile-abi -fobjc-default-synthesize-properties -verify %s
 // rdar://8774580
 
 @interface Super