summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-11-04 19:50:49 +0000
committerGreg Clayton <gclayton@apple.com>2013-11-04 19:50:49 +0000
commitbc3122ead3138a7f1bb556c57a1fa3b9f1d488da (patch)
tree84f5bc9b4414eb285c8897713e99e1a7fa5fa142
parent75c718521d0e6bd1dc5b8a26f8879cea76959a29 (diff)
downloadbcm5719-llvm-bc3122ead3138a7f1bb556c57a1fa3b9f1d488da.tar.gz
bcm5719-llvm-bc3122ead3138a7f1bb556c57a1fa3b9f1d488da.zip
<rdar://problem/15367406>
Fixed a case where on darwin, after recent compiler changes a few months ago, we could not execute dlopen() in an expression, or use "process load". The issue was some compiler option default values changed. We now override these settings to get the old behavior back. llvm-svn: 194012
-rw-r--r--lldb/source/Expression/ClangExpressionParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp
index ed568983be8..f0de1edc90d 100644
--- a/lldb/source/Expression/ClangExpressionParser.cpp
+++ b/lldb/source/Expression/ClangExpressionParser.cpp
@@ -311,6 +311,8 @@ ClangExpressionParser::ClangExpressionParser (ExecutionContextScope *exe_scope,
// Set CodeGen options
m_compiler->getCodeGenOpts().EmitDeclMetadata = true;
m_compiler->getCodeGenOpts().InstrumentFunctions = false;
+ m_compiler->getCodeGenOpts().DisableFPElim = true;
+ m_compiler->getCodeGenOpts().OmitLeafFramePointer = false;
// Disable some warnings.
m_compiler->getDiagnostics().setDiagnosticGroupMapping("unused-value", clang::diag::MAP_IGNORE, SourceLocation());
OpenPOWER on IntegriCloud