diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2019-08-05 12:32:59 +0000 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2019-08-05 12:32:59 +0000 |
| commit | 6c64a9b8ab7ebbefb3f7dcda86aa9a6fb915433c (patch) | |
| tree | 95d64d895544258f95d8f58680cd71521d8e0b40 /lldb/source/Expression | |
| parent | 6e52d40ce3159ef454eb749176842f0263cc49ea (diff) | |
| download | bcm5719-llvm-6c64a9b8ab7ebbefb3f7dcda86aa9a6fb915433c.tar.gz bcm5719-llvm-6c64a9b8ab7ebbefb3f7dcda86aa9a6fb915433c.zip | |
[lldb] Move redundant persistent variable counter to ClangPersistentVariables
Currently Target::m_next_persistent_variable_index is counting up
for our persistent variables ($0, $1, ...) but we also have a
unused counter that is supposed to do this in
ClangPersistentVariables but that stays always at 0 (because
we currently increase the target counter when we should increase
that unused counter).
This patch removes the counter in Target and lets the documented
counter in ClangPersistentVariables do the variable counting.
Patch *should* be NFC, but it might unexpectedly bring LLDB to
new code paths that could contain exciting new bugs to fix.
llvm-svn: 367842
Diffstat (limited to 'lldb/source/Expression')
| -rw-r--r-- | lldb/source/Expression/ExpressionVariable.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lldb/source/Expression/ExpressionVariable.cpp b/lldb/source/Expression/ExpressionVariable.cpp index ed8da0ad867..61df940b2ad 100644 --- a/lldb/source/Expression/ExpressionVariable.cpp +++ b/lldb/source/Expression/ExpressionVariable.cpp @@ -76,13 +76,3 @@ 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); -} |

