[cfe-commits] r89058 - in /cfe/trunk: include/clang/Basic/ lib/Basic/ lib/Driver/ lib/Frontend/ test/CodeGenObjC/ test/Coverage/ test/Preprocessor/ tools/clang-cc/
Daniel Dunbar
daniel at zuster.org
Mon Nov 16 23:07:29 PST 2009
Author: ddunbar
Date: Tue Nov 17 01:07:28 2009
New Revision: 89058
URL: http://llvm.org/viewvc/llvm-project?rev=89058&view=rev
Log:
Move -fnext-runtime defaulting to driver (and change clang-cc default to
-fnext-runtime), instead of using getDefaultLangOptions.
Modified:
cfe/trunk/include/clang/Basic/LangOptions.h
cfe/trunk/lib/Basic/Targets.cpp
cfe/trunk/lib/Driver/Tools.cpp
cfe/trunk/lib/Frontend/CompilerInvocation.cpp
cfe/trunk/test/CodeGenObjC/bitfield-1.m
cfe/trunk/test/CodeGenObjC/bitfield-ivar-metadata.m
cfe/trunk/test/CodeGenObjC/category-super-class-meth.m
cfe/trunk/test/CodeGenObjC/class-getter-dotsyntax.m
cfe/trunk/test/CodeGenObjC/constant-strings.m
cfe/trunk/test/CodeGenObjC/continuation-class.m
cfe/trunk/test/CodeGenObjC/dot-syntax-1.m
cfe/trunk/test/CodeGenObjC/dot-syntax.m
cfe/trunk/test/CodeGenObjC/encode-test-1.m
cfe/trunk/test/CodeGenObjC/encode-test-2.m
cfe/trunk/test/CodeGenObjC/encode-test-3.m
cfe/trunk/test/CodeGenObjC/encode-test-5.m
cfe/trunk/test/CodeGenObjC/encode-test.m
cfe/trunk/test/CodeGenObjC/hidden.m
cfe/trunk/test/CodeGenObjC/link-errors.m
cfe/trunk/test/CodeGenObjC/message-arrays.m
cfe/trunk/test/CodeGenObjC/messages-2.m
cfe/trunk/test/CodeGenObjC/messages.m
cfe/trunk/test/CodeGenObjC/newproperty-nested-synthesis-1.m
cfe/trunk/test/CodeGenObjC/objc-gc-aggr-assign.m
cfe/trunk/test/CodeGenObjC/objc2-assign-global.m
cfe/trunk/test/CodeGenObjC/objc2-new-gc-api-strongcast.m
cfe/trunk/test/CodeGenObjC/objc2-property-encode.m
cfe/trunk/test/CodeGenObjC/objc2-protocol-enc.m
cfe/trunk/test/CodeGenObjC/objc2-strong-cast.m
cfe/trunk/test/CodeGenObjC/objc2-weak-compare.m
cfe/trunk/test/CodeGenObjC/objc2-write-barrier-2.m
cfe/trunk/test/CodeGenObjC/objc2-write-barrier.m
cfe/trunk/test/CodeGenObjC/object-incr-decr-1.m
cfe/trunk/test/CodeGenObjC/property-aggr-type.m
cfe/trunk/test/CodeGenObjC/property-agrr-getter.m
cfe/trunk/test/CodeGenObjC/property-getter-dot-syntax.m
cfe/trunk/test/CodeGenObjC/property-incr-decr-1.m
cfe/trunk/test/CodeGenObjC/property.m
cfe/trunk/test/CodeGenObjC/protocols.m
cfe/trunk/test/CodeGenObjC/runtime-fns.m
cfe/trunk/test/CodeGenObjC/super-classmethod-category.m
cfe/trunk/test/CodeGenObjC/unname-bf-metadata.m
cfe/trunk/test/CodeGenObjC/variadic-sends.m
cfe/trunk/test/Coverage/codegen-next.m
cfe/trunk/test/Preprocessor/init.c
cfe/trunk/tools/clang-cc/Options.cpp
Modified: cfe/trunk/include/clang/Basic/LangOptions.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/LangOptions.h?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/LangOptions.h (original)
+++ cfe/trunk/include/clang/Basic/LangOptions.h Tue Nov 17 01:07:28 2009
@@ -126,7 +126,8 @@
ObjCConstantStringClass = 0;
C99 = Microsoft = CPlusPlus = CPlusPlus0x = 0;
CXXOperatorNames = PascalStrings = WritableStrings = 0;
- Exceptions = NeXTRuntime = Freestanding = NoBuiltin = 0;
+ Exceptions = Freestanding = NoBuiltin = 0;
+ NeXTRuntime = 1;
Rtti = 1;
LaxVectorConversions = 1;
HeinousExtensions = 0;
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Tue Nov 17 01:07:28 2009
@@ -158,8 +158,6 @@
/// GetDarwinLanguageOptions - Set the default language options for darwin.
static void GetDarwinLanguageOptions(LangOptions &Opts,
const llvm::Triple &Triple) {
- Opts.NeXTRuntime = true;
-
unsigned MajorVersion = Triple.getDarwinMajorNumber();
// Blocks and stack protectors default to on for 10.6 (darwin10) and beyond.
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Nov 17 01:07:28 2009
@@ -887,9 +887,7 @@
Args.AddLastArg(CmdArgs, options::OPT_femit_all_decls);
Args.AddLastArg(CmdArgs, options::OPT_ffreestanding);
Args.AddLastArg(CmdArgs, options::OPT_fheinous_gnu_extensions);
- Args.AddLastArg(CmdArgs, options::OPT_fgnu_runtime);
Args.AddLastArg(CmdArgs, options::OPT_flax_vector_conversions);
- Args.AddLastArg(CmdArgs, options::OPT_fnext_runtime);
Args.AddLastArg(CmdArgs, options::OPT_fno_caret_diagnostics);
Args.AddLastArg(CmdArgs, options::OPT_fno_show_column);
Args.AddLastArg(CmdArgs, options::OPT_fobjc_gc_only);
@@ -955,6 +953,12 @@
getToolChain().getTriple().getOS() == llvm::Triple::Win32))
CmdArgs.push_back("-fms-extensions");
+ // -fnext-runtime is default.
+ if (!Args.hasFlag(options::OPT_fnext_runtime,
+ options::OPT_fgnu_runtime,
+ getToolChain().getTriple().getOS() == llvm::Triple::Darwin))
+ CmdArgs.push_back("-fgnu-runtime");
+
// -fshort-wchar default varies depending on platform; only
// pass if specified.
if (Arg *A = Args.getLastArg(options::OPT_fshort_wchar)) {
Modified: cfe/trunk/lib/Frontend/CompilerInvocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInvocation.cpp?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInvocation.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInvocation.cpp Tue Nov 17 01:07:28 2009
@@ -396,7 +396,8 @@
Res.push_back(Opts.Exceptions ? "1" : "0");
Res.push_back("-frtti");
Res.push_back(Opts.Rtti ? "1" : "0");
- Res.push_back(Opts.NeXTRuntime ? "-fnext-runtime" : "-fgnu-runtime");
+ if (!Opts.NeXTRuntime)
+ Res.push_back("-fgnu-runtime");
if (Opts.Freestanding)
Res.push_back("-ffreestanding");
if (Opts.NoBuiltin)
Modified: cfe/trunk/test/CodeGenObjC/bitfield-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/bitfield-1.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/bitfield-1.m (original)
+++ cfe/trunk/test/CodeGenObjC/bitfield-1.m Tue Nov 17 01:07:28 2009
@@ -1,5 +1,5 @@
-// RUN: clang-cc -triple x86_64-apple-darwin9 -fnext-runtime -emit-llvm -o %t %s
-// RUN: clang-cc -triple i386-apple-darwin9 -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -triple x86_64-apple-darwin9 -emit-llvm -o %t %s
+// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang-cc -triple i386-pc-linux-gnu -emit-llvm -o %t %s
@interface Object
Modified: cfe/trunk/test/CodeGenObjC/bitfield-ivar-metadata.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/bitfield-ivar-metadata.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/bitfield-ivar-metadata.m (original)
+++ cfe/trunk/test/CodeGenObjC/bitfield-ivar-metadata.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -emit-llvm -o %t %s
@interface INTF
{
Modified: cfe/trunk/test/CodeGenObjC/category-super-class-meth.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/category-super-class-meth.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/category-super-class-meth.m (original)
+++ cfe/trunk/test/CodeGenObjC/category-super-class-meth.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -emit-llvm -o %t %s
@interface BASE
+ (int) BaseMeth;
Modified: cfe/trunk/test/CodeGenObjC/class-getter-dotsyntax.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/class-getter-dotsyntax.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/class-getter-dotsyntax.m (original)
+++ cfe/trunk/test/CodeGenObjC/class-getter-dotsyntax.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -emit-llvm -o %t %s
@interface Test { }
+ (Test *)crash;
Modified: cfe/trunk/test/CodeGenObjC/constant-strings.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/constant-strings.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/constant-strings.m (original)
+++ cfe/trunk/test/CodeGenObjC/constant-strings.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang-cc -fgnu-runtime -emit-llvm -o %t %s && grep NXConstantString %t | count 1
// RUN: clang-cc -fgnu-runtime -fconstant-string-class=NSConstantString -emit-llvm -o %t %s && grep NSConstantString %t | count 1
Modified: cfe/trunk/test/CodeGenObjC/continuation-class.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/continuation-class.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/continuation-class.m (original)
+++ cfe/trunk/test/CodeGenObjC/continuation-class.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime --emit-llvm -o %t %s
+// RUN: clang-cc --emit-llvm -o %t %s
@interface Object
- (id)new;
Modified: cfe/trunk/test/CodeGenObjC/dot-syntax-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/dot-syntax-1.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/dot-syntax-1.m (original)
+++ cfe/trunk/test/CodeGenObjC/dot-syntax-1.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime --emit-llvm -o %t %s
+// RUN: clang-cc --emit-llvm -o %t %s
#include <stdio.h>
Modified: cfe/trunk/test/CodeGenObjC/dot-syntax.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/dot-syntax.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/dot-syntax.m (original)
+++ cfe/trunk/test/CodeGenObjC/dot-syntax.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime --emit-llvm -o %t %s
+// RUN: clang-cc --emit-llvm -o %t %s
#include <stdio.h>
Modified: cfe/trunk/test/CodeGenObjC/encode-test-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/encode-test-1.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/encode-test-1.m (original)
+++ cfe/trunk/test/CodeGenObjC/encode-test-1.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple=i686-apple-darwin9 -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep -e "{Base=b2b3b4b5}" %t | count 1
// RUN: grep -e "{Derived=b2b3b4b5b5b4b3}" %t | count 1
Modified: cfe/trunk/test/CodeGenObjC/encode-test-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/encode-test-2.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/encode-test-2.m (original)
+++ cfe/trunk/test/CodeGenObjC/encode-test-2.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple=i686-apple-darwin9 -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep -e "@\\\22<X>\\\22" %t
// RUN: grep -e "@\\\22<X><Y>\\\22" %t
// RUN: grep -e "@\\\22<X><Y><Z>\\\22" %t
Modified: cfe/trunk/test/CodeGenObjC/encode-test-3.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/encode-test-3.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/encode-test-3.m (original)
+++ cfe/trunk/test/CodeGenObjC/encode-test-3.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple=i686-apple-darwin9 -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep -e "\^i" %t | count 1
// RUN: grep -e "\[0i\]" %t | count 1
Modified: cfe/trunk/test/CodeGenObjC/encode-test-5.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/encode-test-5.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/encode-test-5.m (original)
+++ cfe/trunk/test/CodeGenObjC/encode-test-5.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple=x86_64-apple-darwin9 -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -triple=x86_64-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep ji.00 %t | count 1
char *a = @encode(_Complex int);
Modified: cfe/trunk/test/CodeGenObjC/encode-test.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/encode-test.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/encode-test.m (original)
+++ cfe/trunk/test/CodeGenObjC/encode-test.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple=i686-apple-darwin9 -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep -e "\^{Innermost=CC}" %t | count 1
// RUN: grep -e "{Derived=#ib32b8b3b8sb16b8b8b2b8ccb6}" %t | count 1
// RUN: grep -e "{B1=#@c}" %t | count 1
Modified: cfe/trunk/test/CodeGenObjC/hidden.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/hidden.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/hidden.m (original)
+++ cfe/trunk/test/CodeGenObjC/hidden.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime --emit-llvm -o %t %s
+// RUN: clang-cc --emit-llvm -o %t %s
__attribute__((visibility("hidden")))
@interface Hidden
Modified: cfe/trunk/test/CodeGenObjC/link-errors.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/link-errors.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/link-errors.m (original)
+++ cfe/trunk/test/CodeGenObjC/link-errors.m Tue Nov 17 01:07:28 2009
@@ -1,8 +1,8 @@
-// RUN: clang-cc -triple i386-apple-darwin9 -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep '.lazy_reference .objc_class_name_A' %t | count 1
// RUN: grep '.lazy_reference .objc_class_name_Unknown' %t | count 1
// RUN: grep '.lazy_reference .objc_class_name_Protocol' %t | count 1
-// RUN: clang-cc -triple i386-apple-darwin9 -DWITH_IMPL -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -triple i386-apple-darwin9 -DWITH_IMPL -emit-llvm -o %t %s
// RUN: grep '.lazy_reference .objc_class_name_Root' %t | count 1
@interface Root
Modified: cfe/trunk/test/CodeGenObjC/message-arrays.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/message-arrays.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/message-arrays.m (original)
+++ cfe/trunk/test/CodeGenObjC/message-arrays.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -emit-llvm -o %t %s
void f0(id a) {
// This should have an implicit cast
Modified: cfe/trunk/test/CodeGenObjC/messages-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/messages-2.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/messages-2.m (original)
+++ cfe/trunk/test/CodeGenObjC/messages-2.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime --emit-llvm -o %t %s
+// RUN: clang-cc --emit-llvm -o %t %s
#include <stdio.h>
Modified: cfe/trunk/test/CodeGenObjC/messages.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/messages.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/messages.m (original)
+++ cfe/trunk/test/CodeGenObjC/messages.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime --emit-llvm -o %t %s
+// RUN: clang-cc --emit-llvm -o %t %s
// RUN: grep "objc_msgSend" %t | count 6
// RUN: clang-cc -fgnu-runtime --emit-llvm -o %t %s
// RUN: grep "objc_msg_lookup" %t | count 6
Modified: cfe/trunk/test/CodeGenObjC/newproperty-nested-synthesis-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/newproperty-nested-synthesis-1.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/newproperty-nested-synthesis-1.m (original)
+++ cfe/trunk/test/CodeGenObjC/newproperty-nested-synthesis-1.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime --emit-llvm -o %t %s
+// RUN: clang-cc --emit-llvm -o %t %s
@interface Object
- (id) new;
Modified: cfe/trunk/test/CodeGenObjC/objc-gc-aggr-assign.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc-gc-aggr-assign.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc-gc-aggr-assign.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc-gc-aggr-assign.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime -fobjc-gc -emit-llvm -o %t %s
+// RUN: clang-cc -fobjc-gc -emit-llvm -o %t %s
// RUN: grep objc_memmove_collectable %t | grep call | count 3
static int count;
Modified: cfe/trunk/test/CodeGenObjC/objc2-assign-global.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-assign-global.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-assign-global.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc2-assign-global.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple x86_64-apple-darwin10 -fnext-runtime -fobjc-gc -emit-llvm -o %t %s
+// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
// RUN: grep -F '@objc_assign_global' %t | count 26
@class NSObject;
Modified: cfe/trunk/test/CodeGenObjC/objc2-new-gc-api-strongcast.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-new-gc-api-strongcast.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-new-gc-api-strongcast.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc2-new-gc-api-strongcast.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple x86_64-apple-darwin10 -fblocks -fnext-runtime -fobjc-gc -emit-llvm -o %t %s
+// RUN: clang-cc -triple x86_64-apple-darwin10 -fblocks -fobjc-gc -emit-llvm -o %t %s
// RUN: grep -F '@objc_assign_strongCast' %t | count 4
@interface DSATextSearch @end
Modified: cfe/trunk/test/CodeGenObjC/objc2-property-encode.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-property-encode.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-property-encode.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc2-property-encode.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple=i686-apple-darwin9 -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep -e "T@\\\\22NSString\\\\22" %t
@interface NSString @end
Modified: cfe/trunk/test/CodeGenObjC/objc2-protocol-enc.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-protocol-enc.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-protocol-enc.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc2-protocol-enc.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple=i686-apple-darwin9 -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep -e "T@\\\22<X>\\\22" %t
// RUN: grep -e "T@\\\22<X><Y>\\\22" %t
// RUN: grep -e "T@\\\22<X><Y><Z>\\\22" %t
Modified: cfe/trunk/test/CodeGenObjC/objc2-strong-cast.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-strong-cast.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-strong-cast.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc2-strong-cast.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime -fobjc-gc -emit-llvm -o %t %s
+// RUN: clang-cc -fobjc-gc -emit-llvm -o %t %s
@interface I {
__attribute__((objc_gc(strong))) signed long *_documentIDs;
Modified: cfe/trunk/test/CodeGenObjC/objc2-weak-compare.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-weak-compare.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-weak-compare.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc2-weak-compare.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple i386-apple-darwin9 -fnext-runtime -fobjc-gc -emit-llvm -o %t %s
+// RUN: clang-cc -triple i386-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
@interface PBXTarget
{
Modified: cfe/trunk/test/CodeGenObjC/objc2-write-barrier-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-write-barrier-2.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-write-barrier-2.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc2-write-barrier-2.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple x86_64-apple-darwin10 -fnext-runtime -fobjc-gc -emit-llvm -o %t %s
+// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
// RUN: grep -F '@objc_assign_global' %t | count 7
// RUN: grep -F '@objc_assign_ivar' %t | count 5
// RUN: grep -F '@objc_assign_strongCast' %t | count 8
Modified: cfe/trunk/test/CodeGenObjC/objc2-write-barrier.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-write-barrier.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-write-barrier.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc2-write-barrier.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple x86_64-apple-darwin10 -fnext-runtime -fobjc-gc -emit-llvm -o %t %s
+// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
// RUN: grep -F '@objc_assign_global' %t | count 21
// RUN: grep -F '@objc_assign_ivar' %t | count 11
Modified: cfe/trunk/test/CodeGenObjC/object-incr-decr-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/object-incr-decr-1.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/object-incr-decr-1.m (original)
+++ cfe/trunk/test/CodeGenObjC/object-incr-decr-1.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple i386-apple-darwin9 -fnext-runtime -emit-llvm %s -o %t
+// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm %s -o %t
@interface Foo
{
Modified: cfe/trunk/test/CodeGenObjC/property-aggr-type.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/property-aggr-type.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/property-aggr-type.m (original)
+++ cfe/trunk/test/CodeGenObjC/property-aggr-type.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -emit-llvm -o %t %s
@interface Object
- (id) new;
Modified: cfe/trunk/test/CodeGenObjC/property-agrr-getter.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/property-agrr-getter.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/property-agrr-getter.m (original)
+++ cfe/trunk/test/CodeGenObjC/property-agrr-getter.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -emit-llvm -o %t %s
typedef struct {
unsigned f0;
Modified: cfe/trunk/test/CodeGenObjC/property-getter-dot-syntax.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/property-getter-dot-syntax.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/property-getter-dot-syntax.m (original)
+++ cfe/trunk/test/CodeGenObjC/property-getter-dot-syntax.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime --emit-llvm -o %t %s
+// RUN: clang-cc --emit-llvm -o %t %s
@protocol NSObject
- (void *)description;
Modified: cfe/trunk/test/CodeGenObjC/property-incr-decr-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/property-incr-decr-1.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/property-incr-decr-1.m (original)
+++ cfe/trunk/test/CodeGenObjC/property-incr-decr-1.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -emit-llvm -o %t %s
@interface Object
- (id) new;
Modified: cfe/trunk/test/CodeGenObjC/property.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/property.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/property.m (original)
+++ cfe/trunk/test/CodeGenObjC/property.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime --emit-llvm -o %t %s
+// RUN: clang-cc --emit-llvm -o %t %s
#include <stdio.h>
Modified: cfe/trunk/test/CodeGenObjC/protocols.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/protocols.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/protocols.m (original)
+++ cfe/trunk/test/CodeGenObjC/protocols.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime -emit-llvm %s -o %t
+// RUN: clang-cc -emit-llvm %s -o %t
void p(const char*, ...);
Modified: cfe/trunk/test/CodeGenObjC/runtime-fns.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/runtime-fns.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/runtime-fns.m (original)
+++ cfe/trunk/test/CodeGenObjC/runtime-fns.m Tue Nov 17 01:07:28 2009
@@ -1,6 +1,6 @@
-// RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -emit-llvm -o %t %s
// RUN: grep -e "^de.*objc_msgSend[0-9]*(" %t | count 1
-// RUN: clang-cc -DWITHDEF -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -DWITHDEF -emit-llvm -o %t %s
// RUN: grep -e "^de.*objc_msgSend[0-9]*(" %t | count 1
id objc_msgSend(int x);
Modified: cfe/trunk/test/CodeGenObjC/super-classmethod-category.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/super-classmethod-category.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/super-classmethod-category.m (original)
+++ cfe/trunk/test/CodeGenObjC/super-classmethod-category.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -emit-llvm -o %t %s
@interface SUPER
+ (void)Meth;
Modified: cfe/trunk/test/CodeGenObjC/unname-bf-metadata.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/unname-bf-metadata.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/unname-bf-metadata.m (original)
+++ cfe/trunk/test/CodeGenObjC/unname-bf-metadata.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -emit-llvm -o %t %s
// Test that meta-data for ivar lists with unnamed bitfield are generated.
//
@interface Foo {
Modified: cfe/trunk/test/CodeGenObjC/variadic-sends.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/variadic-sends.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/variadic-sends.m (original)
+++ cfe/trunk/test/CodeGenObjC/variadic-sends.m Tue Nov 17 01:07:28 2009
@@ -1,5 +1,5 @@
-// RUN: clang-cc -triple i386-unknown-unknown -fnext-runtime -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-X86-32 %s
-// RUN: clang-cc -triple x86_64-unknown-unknown -fnext-runtime -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-X86-64 %s
+// RUN: clang-cc -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-X86-32 %s
+// RUN: clang-cc -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-X86-64 %s
@interface A
-(void) im0;
Modified: cfe/trunk/test/Coverage/codegen-next.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Coverage/codegen-next.m?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/Coverage/codegen-next.m (original)
+++ cfe/trunk/test/Coverage/codegen-next.m Tue Nov 17 01:07:28 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s
-// RUN: clang-cc -g -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -emit-llvm -o %t %s
+// RUN: clang-cc -g -emit-llvm -o %t %s
#include "objc-language-features.inc"
Modified: cfe/trunk/test/Preprocessor/init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/init.c?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/init.c (original)
+++ cfe/trunk/test/Preprocessor/init.c Tue Nov 17 01:07:28 2009
@@ -83,19 +83,15 @@
// RUN: clang-cc -x=objective-c -E -dM < /dev/null | FileCheck -check-prefix OBJC %s
//
// OBJC:#define OBJC_NEW_PROPERTIES 1
+// OBJC:#define __NEXT_RUNTIME__ 1
// OBJC:#define __OBJC__ 1
//
-//
+//
// RUN: clang-cc -x=objective-c -fobjc-gc -E -dM < /dev/null | FileCheck -check-prefix OBJCGC %s
//
// OBJCGC:#define __OBJC_GC__ 1
//
//
-// RUN: clang-cc -x=objective-c -fnext-runtime -E -dM < /dev/null | FileCheck -check-prefix NEXTRT %s
-//
-// NEXTRT:#define __NEXT_RUNTIME__ 1
-//
-//
// RUN: clang-cc -x=objective-c -fobjc-nonfragile-abi -E -dM < /dev/null | FileCheck -check-prefix NONFRAGILE %s
//
// NONFRAGILE:#define OBJC_ZEROCOST_EXCEPTIONS 1
Modified: cfe/trunk/tools/clang-cc/Options.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/Options.cpp?rev=89058&r1=89057&r2=89058&view=diff
==============================================================================
--- cfe/trunk/tools/clang-cc/Options.cpp (original)
+++ cfe/trunk/tools/clang-cc/Options.cpp Tue Nov 17 01:07:28 2009
@@ -541,11 +541,6 @@
llvm::cl::desc("Require math functions to respect errno"));
static llvm::cl::opt<bool>
-NeXTRuntime("fnext-runtime",
- llvm::cl::desc("Generate output compatible with the NeXT "
- "runtime"));
-
-static llvm::cl::opt<bool>
NoElideConstructors("fno-elide-constructors",
llvm::cl::desc("Disable C++ copy constructor elision"));
@@ -1268,9 +1263,7 @@
Options.InstantiationDepth = TemplateDepth;
// Override the default runtime if the user requested it.
- if (NeXTRuntime)
- Options.NeXTRuntime = 1;
- else if (GNURuntime)
+ if (GNURuntime)
Options.NeXTRuntime = 0;
if (!ObjCConstantStringClass.empty())
More information about the cfe-commits
mailing list