diff options
| author | Sean Callanan <scallanan@apple.com> | 2015-09-30 19:57:57 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2015-09-30 19:57:57 +0000 |
| commit | 8f1f9a1be30ff0e260f451f18712dff7fa9a7273 (patch) | |
| tree | 0f8b5547cb3eeee31a03e5b687b083f7af8013fa /lldb/source/Target/ABI.cpp | |
| parent | f608111d1b6493ae9f8e8f0c24da57ca1aebb72f (diff) | |
| download | bcm5719-llvm-8f1f9a1be30ff0e260f451f18712dff7fa9a7273.tar.gz bcm5719-llvm-8f1f9a1be30ff0e260f451f18712dff7fa9a7273.zip | |
Now persistent expression data no longer lives with the Target, but rather with
the corresponding TypeSystem. This makes sense because what kind of data there
is -- and how it can be looked up -- depends on the language.
Functionality that is common to all type systems is factored out into
PersistentExpressionState.
llvm-svn: 248934
Diffstat (limited to 'lldb/source/Target/ABI.cpp')
| -rw-r--r-- | lldb/source/Target/ABI.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/Target/ABI.cpp b/lldb/source/Target/ABI.cpp index aab4bd31a03..6bee1c44f22 100644 --- a/lldb/source/Target/ABI.cpp +++ b/lldb/source/Target/ABI.cpp @@ -13,6 +13,7 @@ #include "lldb/Core/ValueObjectConstResult.h" #include "Plugins/ExpressionParser/Clang/ClangPersistentVariables.h" #include "lldb/Symbol/CompilerType.h" +#include "lldb/Symbol/TypeSystem.h" #include "lldb/Target/Target.h" #include "lldb/Target/Thread.h" @@ -123,8 +124,8 @@ ABI::GetReturnValueObject (Thread &thread, if (persistent) { - ClangPersistentVariables& persistent_variables = thread.CalculateTarget()->GetPersistentVariables(); - ConstString persistent_variable_name (persistent_variables.GetNextPersistentVariableName()); + PersistentExpressionState *persistent_expression_state = thread.CalculateTarget()->GetScratchTypeSystemForLanguage(ast_type.GetMinimumLanguage())->GetPersistentExpressionState(); + ConstString persistent_variable_name (persistent_expression_state->GetNextPersistentVariableName()); lldb::ValueObjectSP const_valobj_sp; @@ -141,7 +142,7 @@ ABI::GetReturnValueObject (Thread &thread, return_valobj_sp = const_valobj_sp; - ExpressionVariableSP clang_expr_variable_sp(persistent_variables.CreatePersistentVariable(return_valobj_sp)); + ExpressionVariableSP clang_expr_variable_sp(ClangExpressionVariable::CreateVariableInList(*persistent_expression_state, return_valobj_sp)->shared_from_this()); assert (clang_expr_variable_sp.get()); |

