summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/ABI.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-04-30 23:59:17 +0000
committerAdrian Prantl <aprantl@apple.com>2018-04-30 23:59:17 +0000
commit03219f7f64b743cd53077280d139902b0e915365 (patch)
tree81d48657fc2fe335eb268531b1882b61d3fee4e0 /lldb/source/Target/ABI.cpp
parent5435f78046ee39f7bec4be7833cb0a86043f8aa2 (diff)
downloadbcm5719-llvm-03219f7f64b743cd53077280d139902b0e915365.tar.gz
bcm5719-llvm-03219f7f64b743cd53077280d139902b0e915365.zip
Refactor GetNextPersistentVariableName into a non-virtual method
that takes a prefix string. This simplifies the implementation and allows plugins such as the Swift plugin to supply different prefixes for return and error variables. rdar://problem/39299889 Differential Revision: https://reviews.llvm.org/D46088 llvm-svn: 331235
Diffstat (limited to 'lldb/source/Target/ABI.cpp')
-rw-r--r--lldb/source/Target/ABI.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Target/ABI.cpp b/lldb/source/Target/ABI.cpp
index 843216916f5..8d4513ad681 100644
--- a/lldb/source/Target/ABI.cpp
+++ b/lldb/source/Target/ABI.cpp
@@ -110,8 +110,10 @@ ValueObjectSP ABI::GetReturnValueObject(Thread &thread, CompilerType &ast_type,
if (!persistent_expression_state)
return ValueObjectSP();
- ConstString persistent_variable_name(
- persistent_expression_state->GetNextPersistentVariableName(target));
+ auto prefix = persistent_expression_state->GetPersistentVariablePrefix();
+ ConstString persistent_variable_name =
+ persistent_expression_state->GetNextPersistentVariableName(target,
+ prefix);
lldb::ValueObjectSP const_valobj_sp;
OpenPOWER on IntegriCloud