diff options
| author | Sean Callanan <scallanan@apple.com> | 2015-10-01 23:07:06 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2015-10-01 23:07:06 +0000 |
| commit | 9301ec11910dbb7fd13becd0e77b0a1faeff5915 (patch) | |
| tree | 573c59b37f44c0c36df9b9ccbcf17c6b890c2dc5 /lldb/source/Target/ABI.cpp | |
| parent | b660b619544d110808a93e4bb069a630c8a20900 (diff) | |
| download | bcm5719-llvm-9301ec11910dbb7fd13becd0e77b0a1faeff5915.tar.gz bcm5719-llvm-9301ec11910dbb7fd13becd0e77b0a1faeff5915.zip | |
Eliminated redundant "constructors" for ClangExpressionVariable.
The ClangExpressionVariable::CreateVariableInList functions looked cute, but
caused more confusion than they solved. I removed them, and instead made sure
that there are adequate facilities for easily adding newly-constructed
ExpressionVariables to lists.
I also made some of the constructors that are common be generic, so that it's
possible to construct expression variables from generic places (like the ABI and
ValueObject) without having to know the specifics about the class.
llvm-svn: 249095
Diffstat (limited to 'lldb/source/Target/ABI.cpp')
| -rw-r--r-- | lldb/source/Target/ABI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Target/ABI.cpp b/lldb/source/Target/ABI.cpp index b2334d6abb8..4d67cb46abe 100644 --- a/lldb/source/Target/ABI.cpp +++ b/lldb/source/Target/ABI.cpp @@ -146,7 +146,7 @@ ABI::GetReturnValueObject (Thread &thread, return_valobj_sp = const_valobj_sp; - ExpressionVariableSP clang_expr_variable_sp(ClangExpressionVariable::CreateVariableInList(*persistent_expression_state, return_valobj_sp)->shared_from_this()); + ExpressionVariableSP clang_expr_variable_sp(persistent_expression_state->CreatePersistentVariable(return_valobj_sp)); assert (clang_expr_variable_sp.get()); |

