diff options
author | Jim Ingham <jingham@apple.com> | 2011-03-31 00:19:25 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2011-03-31 00:19:25 +0000 |
commit | 6035b67d2c27cc1af134293acb06ce7463f88671 (patch) | |
tree | b560151fdc63ab7c4f23a1526516daa7745f838c /lldb/source/Expression/ClangPersistentVariables.cpp | |
parent | 3a195b7e7818e2828fba055e9397a07e71804bc6 (diff) | |
download | bcm5719-llvm-6035b67d2c27cc1af134293acb06ce7463f88671.tar.gz bcm5719-llvm-6035b67d2c27cc1af134293acb06ce7463f88671.zip |
Convert ValueObject to explicitly maintain the Execution Context in which they were created, and then use that when they update themselves. That means all the ValueObject evaluate me type functions that used to require a Frame object now do not. I didn't remove the SBValue API's that take this now useless frame, but I added ones that don't require the frame, and marked the SBFrame taking ones as deprecated.
llvm-svn: 128593
Diffstat (limited to 'lldb/source/Expression/ClangPersistentVariables.cpp')
-rw-r--r-- | lldb/source/Expression/ClangPersistentVariables.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Expression/ClangPersistentVariables.cpp b/lldb/source/Expression/ClangPersistentVariables.cpp index d5ab9e53e55..c4bf88502f4 100644 --- a/lldb/source/Expression/ClangPersistentVariables.cpp +++ b/lldb/source/Expression/ClangPersistentVariables.cpp @@ -30,12 +30,16 @@ ClangPersistentVariables::CreatePersistentVariable (const lldb::ValueObjectSP &v } ClangExpressionVariableSP -ClangPersistentVariables::CreatePersistentVariable (const ConstString &name, const TypeFromUser& user_type, lldb::ByteOrder byte_order, uint32_t addr_byte_size) +ClangPersistentVariables::CreatePersistentVariable (ExecutionContextScope *exe_scope, + const ConstString &name, + const TypeFromUser& user_type, + lldb::ByteOrder byte_order, + uint32_t addr_byte_size) { ClangExpressionVariableSP var_sp (GetVariable(name)); if (!var_sp) - var_sp = CreateVariable(name, user_type, byte_order, addr_byte_size); + var_sp = CreateVariable(exe_scope, name, user_type, byte_order, addr_byte_size); return var_sp; } |