[cfe-commits] r141795 - in /cfe/trunk: lib/Driver/Tools.cpp test/Driver/rewrite-objc.m
Douglas Gregor
dgregor at apple.com
Wed Oct 12 11:28:53 PDT 2011
Author: dgregor
Date: Wed Oct 12 13:28:53 2011
New Revision: 141795
URL: http://llvm.org/viewvc/llvm-project?rev=141795&view=rev
Log:
The Objective-C rewriter uses the fragile ABI, always.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
cfe/trunk/test/Driver/rewrite-objc.m
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=141795&r1=141794&r2=141795&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Oct 12 13:28:53 2011
@@ -1907,9 +1907,11 @@
D.Diag(diag::err_drv_clang_unsupported) << A->getAsString(Args);
} else {
// Otherwise, determine if we are using the non-fragile ABI.
+ bool NonFragileABIIsDefault
+ = (!IsRewriter && getToolChain().IsObjCNonFragileABIDefault());
if (Args.hasFlag(options::OPT_fobjc_nonfragile_abi,
options::OPT_fno_objc_nonfragile_abi,
- getToolChain().IsObjCNonFragileABIDefault())) {
+ NonFragileABIIsDefault)) {
// Determine the non-fragile ABI version to use.
#ifdef DISABLE_DEFAULT_NONFRAGILEABI_TWO
unsigned NonFragileABIVersion = 1;
Modified: cfe/trunk/test/Driver/rewrite-objc.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/rewrite-objc.m?rev=141795&r1=141794&r2=141795&view=diff
==============================================================================
--- cfe/trunk/test/Driver/rewrite-objc.m (original)
+++ cfe/trunk/test/Driver/rewrite-objc.m Wed Oct 12 13:28:53 2011
@@ -1,4 +1,4 @@
-// RUN: %clang -ccc-host-triple unknown -rewrite-objc %s -o - -### 2>&1 | \
+// RUN: %clang -ccc-host-triple x86_64-apple-macosx10.7.0 -rewrite-objc %s -o - -### 2>&1 | \
// RUN: FileCheck -check-prefix=TEST0 %s
// TEST0: clang{{.*}}" "-cc1"
// TEST0: "-rewrite-objc"
More information about the cfe-commits
mailing list