From 1d1806641146f60f10e6269c7ec66f9ed1e5e88a Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Tue, 20 Jul 2010 23:31:16 +0000 Subject: Added functionality to dematerialize values that were used by the JIT compiled expression, including the result of the expression. Also added a new class, ASTType, which encapsulates an opaque Clang type and its associated AST context. Refactored ClangExpressionDeclMap to use ASTTypes, significantly reducing the possibility of mixups of types from different AST contexts. llvm-svn: 108965 --- lldb/source/Commands/CommandObjectExpression.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lldb/source/Commands/CommandObjectExpression.cpp') diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp index e3f2baa..637d3dc 100644 --- a/lldb/source/Commands/CommandObjectExpression.cpp +++ b/lldb/source/Commands/CommandObjectExpression.cpp @@ -305,10 +305,9 @@ CommandObjectExpression::EvaluateExpression (const char *expr, bool bare, Stream } Error err; - - lldb::addr_t struct_address = expr_decl_map.Materialize(&m_exe_ctx, err); + lldb::addr_t struct_address; - if (struct_address == LLDB_INVALID_ADDRESS) + if (!expr_decl_map.Materialize(&m_exe_ctx, struct_address, err)) { error_stream.Printf ("Couldn't materialize struct: %s\n", err.AsCString("unknown error")); return false; -- cgit v1.1