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 | 4a1cdb5803ea0ad49ccbefb7f9ae14df9d677173 (patch) | |
tree | e78ee4ee673dc91f8ca6162db6dd24a8c5347f2d /lib/Driver/Tools.cpp | |
parent | 372e103dab4239ec52b65b9eda69fd43c0b348d4 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115730 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 1662c375e6..c3c224e9db 100644 --- a/lib/Driver/Tools.cpp +++ b/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; |