summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBCommandInterpreter.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-10-05 21:14:56 +0000
committerZachary Turner <zturner@google.com>2016-10-05 21:14:56 +0000
commita01bccdbe613f5e65fa8da2fb07d6b9b66d203bf (patch)
treec16ba4c60dd4789d645227b2167cb31b4005804a /lldb/source/API/SBCommandInterpreter.cpp
parenta483f579428067c4e7ae7e6617edb67911151ae9 (diff)
downloadbcm5719-llvm-a01bccdbe613f5e65fa8da2fb07d6b9b66d203bf.tar.gz
bcm5719-llvm-a01bccdbe613f5e65fa8da2fb07d6b9b66d203bf.zip
Convert some more aliasing and CI functions to StringRef.
llvm-svn: 283386
Diffstat (limited to 'lldb/source/API/SBCommandInterpreter.cpp')
-rw-r--r--lldb/source/API/SBCommandInterpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBCommandInterpreter.cpp b/lldb/source/API/SBCommandInterpreter.cpp
index 3ca5c0aad8c..45f8ab364b2 100644
--- a/lldb/source/API/SBCommandInterpreter.cpp
+++ b/lldb/source/API/SBCommandInterpreter.cpp
@@ -481,7 +481,7 @@ bool SBCommandInterpreter::SetCommandOverrideCallback(
const char *command_name, lldb::CommandOverrideCallback callback,
void *baton) {
if (command_name && command_name[0] && IsValid()) {
- std::string command_name_str(command_name);
+ llvm::StringRef command_name_str = command_name;
CommandObject *cmd_obj =
m_opaque_ptr->GetCommandObjectForCommand(command_name_str);
if (cmd_obj) {
OpenPOWER on IntegriCloud