aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-10-08 00:21:35 +0000
committerSean Callanan <scallanan@apple.com>2011-10-08 00:21:35 +0000
commit060d53f1559d08a6923e45bdeffe8f22ca663049 (patch)
treeb3767e88ce00651c025642aa3114fb8dc69e7972 /include
parentf28d134fe5696cf7a5f4a0c143b0492ab09f5ff3 (diff)
downloadlldb-060d53f1559d08a6923e45bdeffe8f22ca663049.tar.gz
Fixed a memory leak of ASTResultSynthesizers,
by attaching them to the ClangExpressionParser. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@141452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/lldb/Expression/ClangUserExpression.h2
-rw-r--r--include/lldb/lldb-forward.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/lldb/Expression/ClangUserExpression.h b/include/lldb/Expression/ClangUserExpression.h
index 279ed75b9..6f69cf047 100644
--- a/include/lldb/Expression/ClangUserExpression.h
+++ b/include/lldb/Expression/ClangUserExpression.h
@@ -325,6 +325,8 @@ private:
std::auto_ptr<ClangExpressionVariableList> m_local_variables; ///< The local expression variables, if the expression is DWARF.
std::auto_ptr<ProcessDataAllocator> m_data_allocator; ///< The allocator that the parser uses to place strings for use by JIT-compiled code.
+ std::auto_ptr<ASTResultSynthesizer> m_result_synthesizer; ///< The result synthesizer, if one is needed.
+
bool m_cplusplus; ///< True if the expression is compiled as a C++ member function (true if it was parsed when exe_ctx was in a C++ method).
bool m_objectivec; ///< True if the expression is compiled as an Objective-C method (true if it was parsed when exe_ctx was in an Objective-C method).
bool m_needs_object_ptr; ///< True if "this" or "self" must be looked up and passed in. False if the expression doesn't really use them and they can be NULL.
diff --git a/include/lldb/lldb-forward.h b/include/lldb/lldb-forward.h
index b31a4ae62..90987e7e9 100644
--- a/include/lldb/lldb-forward.h
+++ b/include/lldb/lldb-forward.h
@@ -24,6 +24,7 @@ class AddressRange;
class AddressResolver;
class ArchSpec;
class Args;
+class ASTResultSynthesizer;
class Baton;
class Block;
class Breakpoint;