[all-commits] [llvm/llvm-project] e29cc5: [lldb][NFCI] Remove use of ConstString from IOHandler
Alex via All-commits
all-commits at lists.llvm.org
Thu Jun 15 15:00:39 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e29cc5216a8608b026e390b69022878b2ec3071a
https://github.com/llvm/llvm-project/commit/e29cc5216a8608b026e390b69022878b2ec3071a
Author: Alex Langford <alangford at apple.com>
Date: 2023-06-15 (Thu, 15 Jun 2023)
Changed paths:
M lldb/include/lldb/Core/Debugger.h
M lldb/include/lldb/Core/IOHandler.h
M lldb/include/lldb/Expression/REPL.h
M lldb/include/lldb/Interpreter/CommandInterpreter.h
M lldb/source/API/SBCommandInterpreter.cpp
M lldb/source/Core/Debugger.cpp
M lldb/source/Expression/REPL.cpp
M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
Log Message:
-----------
[lldb][NFCI] Remove use of ConstString from IOHandler
None of these need to be in the ConstString StringPool. For the most
part they are constant strings and do not require fast comparisons.
I did change IOHandlerDelegateMultiline slightly -- specifically, the
`m_end_line` member always has a `\n` at the end of it now. This was so
that `IOHandlerGetControlSequence` can always return a StringRef. This
did require a slight change to `IOHandlerIsInputComplete` where we must
drop the newline before comparing it against the input parameter.
Differential Revision: https://reviews.llvm.org/D151597
More information about the All-commits
mailing list