[cfe-commits] r115730 - /cfe/trunk/lib/Driver/Tools.cpp
John McCall
rjmccall at apple.com
Tue Oct 5 18:40:51 PDT 2010
Author: rjmccall
Date: Tue Oct 5 20:40:51 2010
New Revision: 115730
URL: http://llvm.org/viewvc/llvm-project?rev=115730&view=rev
Log:
Teach the driver to pass -fexceptions in Objective-C inputs on ARM.
I don't know when this stopped happening, but this seems to be the
right place to do it.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=115730&r1=115729&r2=115730&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Oct 5 20:40:51 2010
@@ -704,14 +704,15 @@
return true;
// As do Objective-C non-fragile ABI inputs and all Objective-C inputs on
- // x86_64 after SnowLeopard.
+ // x86_64 and ARM after SnowLeopard.
if (types::isObjC(InputType)) {
if (Args.hasArg(options::OPT_fobjc_nonfragile_abi))
return true;
if (Triple.getOS() != llvm::Triple::Darwin)
return false;
return (Triple.getDarwinMajorNumber() >= 9 &&
- Triple.getArch() == llvm::Triple::x86_64);
+ (Triple.getArch() == llvm::Triple::x86_64 ||
+ Triple.getArch() == llvm::Triple::arm));
}
return false;
More information about the cfe-commits
mailing list