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
This commit is contained in:
John McCall 2010-10-06 01:40:51 +00:00
parent f4abd0db15
commit 2a981c2056
1 changed files with 3 additions and 2 deletions

View File

@ -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;