diff options
author | Raphael Isemann <teemperor@gmail.com> | 2020-07-27 14:28:30 +0200 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2020-07-27 14:36:47 +0200 |
commit | 432241955e032fba3d8b584ee6388212909bee9b (patch) | |
tree | 77a52724bdf08ce6d426576d87306c107fae4699 /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | 90684d1545167ee4e0c93d8eaf6ba4a3c7ab710e (diff) | |
download | llvm-432241955e032fba3d8b584ee6388212909bee9b.zip llvm-432241955e032fba3d8b584ee6388212909bee9b.tar.gz llvm-432241955e032fba3d8b584ee6388212909bee9b.tar.bz2 |
[lldb][NFC] Use a StringRef for AddRegexCommand::AddRegexCommand parameters
Summary: This way we can get rid of this 1024 char buffer workaround.
Reviewers: #lldb, labath
Reviewed By: labath
Subscribers: JDevlieghere
Differential Revision: https://reviews.llvm.org/D84528
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectCommands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index 255fbe5..eaf2234 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -970,7 +970,7 @@ protected: std::string subst(std::string(regex_sed.substr( second_separator_char_pos + 1, third_separator_char_pos - second_separator_char_pos - 1))); - m_regex_cmd_up->AddRegexCommand(regex.c_str(), subst.c_str()); + m_regex_cmd_up->AddRegexCommand(regex, subst); } return error; } |