mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
Fix up how the ValueObjects manage their life cycle so that you can hand out a shared
pointer to a ValueObject or any of its dependent ValueObjects, and the whole cluster will stay around as long as that shared pointer stays around. llvm-svn: 130035
This commit is contained in:
@@ -32,6 +32,12 @@
|
||||
|
||||
using namespace lldb_private;
|
||||
|
||||
lldb::ValueObjectSP
|
||||
ValueObjectVariable::Create (ExecutionContextScope *exe_scope, const lldb::VariableSP &var_sp)
|
||||
{
|
||||
return (new ValueObjectVariable (exe_scope, var_sp))->GetSP();
|
||||
}
|
||||
|
||||
ValueObjectVariable::ValueObjectVariable (ExecutionContextScope *exe_scope, const lldb::VariableSP &var_sp) :
|
||||
ValueObject(exe_scope),
|
||||
m_variable_sp(var_sp)
|
||||
|
||||
Reference in New Issue
Block a user