Don't set the ABI to apcs-gnu for non-ARM iOS targets (i.e., the

simulator).
    
<rdar://problem/17399406>

llvm-svn: 211536
This commit is contained in:
Sean Callanan
2014-06-23 21:00:25 +00:00
parent 9b0957870c
commit 60400ecbce

View File

@@ -157,8 +157,9 @@ ClangExpressionParser::ClangExpressionParser (ExecutionContextScope *exe_scope,
}
// Any arm32 iOS environment, but not on arm64
if (m_compiler->getTargetOpts().Triple.find("arm64") == std::string::npos
&& m_compiler->getTargetOpts().Triple.find("ios") != std::string::npos)
if (m_compiler->getTargetOpts().Triple.find("arm64") == std::string::npos &&
m_compiler->getTargetOpts().Triple.find("arm") != std::string::npos &&
m_compiler->getTargetOpts().Triple.find("ios") != std::string::npos)
{
m_compiler->getTargetOpts().ABI = "apcs-gnu";
}