[Lldb-commits] [lldb] r178509 - Enabled blocks support in the expression parser.

Sean Callanan scallanan at apple.com
Mon Apr 1 15:12:38 PDT 2013


Author: spyffe
Date: Mon Apr  1 17:12:37 2013
New Revision: 178509

URL: http://llvm.org/viewvc/llvm-project?rev=178509&view=rev
Log:
Enabled blocks support in the expression parser.
Note: although it is now possible to declare blocks
and call them inside the same expression, we do not
generate correct block descriptors so these blocks
cannot be passed to functions like dispatch_async.

<rdar://problem/12578656>

Modified:
    lldb/trunk/source/Expression/ClangExpressionParser.cpp

Modified: lldb/trunk/source/Expression/ClangExpressionParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionParser.cpp?rev=178509&r1=178508&r2=178509&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionParser.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionParser.cpp Mon Apr  1 17:12:37 2013
@@ -284,6 +284,7 @@ ClangExpressionParser::ClangExpressionPa
     
     m_compiler->getLangOpts().Bool = true;
     m_compiler->getLangOpts().WChar = true;
+    m_compiler->getLangOpts().Blocks = true;
     m_compiler->getLangOpts().DebuggerSupport = true; // Features specifically for debugger clients
     if (expr.DesiredResultType() == ClangExpression::eResultTypeId)
         m_compiler->getLangOpts().DebuggerCastResultToId = true;





More information about the lldb-commits mailing list