aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectCommands.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-07-27 14:28:30 +0200
committerRaphael Isemann <teemperor@gmail.com>2020-07-27 14:36:47 +0200
commit432241955e032fba3d8b584ee6388212909bee9b (patch)
tree77a52724bdf08ce6d426576d87306c107fae4699 /lldb/source/Commands/CommandObjectCommands.cpp
parent90684d1545167ee4e0c93d8eaf6ba4a3c7ab710e (diff)
downloadllvm-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.cpp2
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;
}