summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangUserExpression.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-10-12 22:20:02 +0000
committerSean Callanan <scallanan@apple.com>2011-10-12 22:20:02 +0000
commite3aef1d063edbe910c294821386553d67f42b16a (patch)
tree8923506abb72ef5e0f2eca71c4672ae4da5e123c /lldb/source/Expression/ClangUserExpression.cpp
parent154a967c231f9faba0ca7ec732abde802a3e4fd0 (diff)
downloadbcm5719-llvm-e3aef1d063edbe910c294821386553d67f42b16a.tar.gz
bcm5719-llvm-e3aef1d063edbe910c294821386553d67f42b16a.zip
Extended the lifetime of Clang parser objects to the
lifetime of ClangExpressionDeclMap. This allows ClangExpressionVariables found during parsing to be queried for their containing namespaces during expression execution. Other clients (like ClangFunction) explicitly delete this state, so they should not result in any memory leaks. llvm-svn: 141821
Diffstat (limited to 'lldb/source/Expression/ClangUserExpression.cpp')
-rw-r--r--lldb/source/Expression/ClangUserExpression.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp
index 9ded61adfc7..b5bad503155 100644
--- a/lldb/source/Expression/ClangUserExpression.cpp
+++ b/lldb/source/Expression/ClangUserExpression.cpp
@@ -276,9 +276,7 @@ ClangUserExpression::Parse (Stream &error_stream,
log->Printf("Data buffer contents:\n%s", dump_string.GetString().c_str());
}
-
- m_expr_decl_map->DidParse();
-
+
if (jit_error.Success())
{
if (process && m_jit_alloc != LLDB_INVALID_ADDRESS)
@@ -449,6 +447,7 @@ ClangUserExpression::FinalizeJITExecution (Stream &error_stream,
error_stream.Printf ("Couldn't dematerialize struct : %s\n", expr_error.AsCString("unknown error"));
return false;
}
+
return true;
}
OpenPOWER on IntegriCloud