diff options
author | John McCall <rjmccall@apple.com> | 2010-10-06 01:40:51 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-10-06 01:40:51 +0000 |
commit | 2a981c205618152efceb7c6130000a7f19dcb472 (patch) | |
tree | 4f7824899aa8a401f719e5f02a7cb048d5a31bed /clang/lib/Driver/Tools.cpp | |
parent | f4abd0db15db8e0f22c645a680fc2a77a75a1ba9 (diff) | |
download | bcm5719-llvm-2a981c205618152efceb7c6130000a7f19dcb472.tar.gz bcm5719-llvm-2a981c205618152efceb7c6130000a7f19dcb472.zip |
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.
llvm-svn: 115730
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 1662c375e6c..c3c224e9dbf 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -704,14 +704,15 @@ static bool needsExceptions(const ArgList &Args, types::ID InputType, 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; |