From bc3122ead3138a7f1bb556c57a1fa3b9f1d488da Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Mon, 4 Nov 2013 19:50:49 +0000 Subject: 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 --- lldb/source/Expression/ClangExpressionParser.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lldb/source/Expression/ClangExpressionParser.cpp') 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()); -- cgit v1.2.3