diff options
| author | Adrian Prantl <aprantl@apple.com> | 2019-08-27 22:50:40 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2019-08-27 22:50:40 +0000 |
| commit | 29db51dad4e8811805041c0bef0de632514b82b1 (patch) | |
| tree | 4b72610ad958c4e1a25ec8a3a97b71847eefe8ab /lldb/source/Expression | |
| parent | 2ed2e62498b7cccf951b7c671498625cecd2a862 (diff) | |
| download | bcm5719-llvm-29db51dad4e8811805041c0bef0de632514b82b1.tar.gz bcm5719-llvm-29db51dad4e8811805041c0bef0de632514b82b1.zip | |
Revert "[lldb] Move redundant persistent variable counter to ClangPersistentVariables"
This reverts commit r367842 since it wasn't quite as NFC as advertised
and broke Swift support. See https://reviews.llvm.org/D46083 for the
rationale behind the original functionality.
rdar://problem/54619322
llvm-svn: 370126
Diffstat (limited to 'lldb/source/Expression')
| -rw-r--r-- | lldb/source/Expression/ExpressionVariable.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/source/Expression/ExpressionVariable.cpp b/lldb/source/Expression/ExpressionVariable.cpp index 61df940b2ad..ed8da0ad867 100644 --- a/lldb/source/Expression/ExpressionVariable.cpp +++ b/lldb/source/Expression/ExpressionVariable.cpp @@ -76,3 +76,13 @@ void PersistentExpressionState::RegisterExecutionUnit( } } } + +ConstString PersistentExpressionState::GetNextPersistentVariableName( + Target &target, llvm::StringRef Prefix) { + llvm::SmallString<64> name; + { + llvm::raw_svector_ostream os(name); + os << Prefix << target.GetNextPersistentVariableIndex(); + } + return ConstString(name); +} |

