summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangExpressionParser.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-06-08 22:20:41 +0000
committerSean Callanan <scallanan@apple.com>2012-06-08 22:20:41 +0000
commite3333d69db6890bda76b888aab3b8f970f567ff3 (patch)
tree73d5050a9ba4344e1461b32fb6022e85602e2a2d /lldb/source/Expression/ClangExpressionParser.cpp
parent5a988416736b906931cf6076d38f5b960110ed81 (diff)
downloadbcm5719-llvm-e3333d69db6890bda76b888aab3b8f970f567ff3.tar.gz
bcm5719-llvm-e3333d69db6890bda76b888aab3b8f970f567ff3.zip
Minor fixes for ARM/iOS targets:
- On iOS, we select the "apcs-gnu" ABI to match what libraries expect. - Literals are now allocated at their preferred alignment, eliminating many alignment crashes. llvm-svn: 158236
Diffstat (limited to 'lldb/source/Expression/ClangExpressionParser.cpp')
-rw-r--r--lldb/source/Expression/ClangExpressionParser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp
index ecf0547e745..b2940def558 100644
--- a/lldb/source/Expression/ClangExpressionParser.cpp
+++ b/lldb/source/Expression/ClangExpressionParser.cpp
@@ -300,6 +300,9 @@ ClangExpressionParser::ClangExpressionParser (ExecutionContextScope *exe_scope,
{
m_compiler->getTargetOpts().Triple = llvm::sys::getDefaultTargetTriple();
}
+
+ if (m_compiler->getTargetOpts().Triple.find("ios") != std::string::npos)
+ m_compiler->getTargetOpts().ABI = "apcs-gnu";
// 3. Set up various important bits of infrastructure.
m_compiler->createDiagnostics(0, 0);
OpenPOWER on IntegriCloud