diff options
| author | Zachary Turner <zturner@google.com> | 2016-10-05 21:14:38 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-10-05 21:14:38 +0000 |
| commit | a449698cdc52af553523e0364e2759949b155843 (patch) | |
| tree | 9f11fdb58b0581c76c514a326bc08fa44d68f676 /lldb/source/Target | |
| parent | f997759aef281363c6209b6bb3ddc737188b8931 (diff) | |
| download | bcm5719-llvm-a449698cdc52af553523e0364e2759949b155843.tar.gz bcm5719-llvm-a449698cdc52af553523e0364e2759949b155843.zip | |
Convert CommandObject constructors to StringRef.
llvm-svn: 283384
Diffstat (limited to 'lldb/source/Target')
| -rw-r--r-- | lldb/source/Target/LanguageRuntime.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lldb/source/Target/LanguageRuntime.cpp b/lldb/source/Target/LanguageRuntime.cpp index 24da18f8388..cacb491392f 100644 --- a/lldb/source/Target/LanguageRuntime.cpp +++ b/lldb/source/Target/LanguageRuntime.cpp @@ -287,12 +287,10 @@ void LanguageRuntime::InitializeCommands(CommandObject *parent) { command_callback(parent->GetCommandInterpreter()); if (command) { // the CommandObject vended by a Language plugin cannot be created once - // and cached because - // we may create multiple debuggers and need one instance of the command - // each - the implementing function - // is meant to create a new instance of the command each time it is - // invoked - parent->LoadSubCommand(command->GetCommandName(), command); + // and cached because we may create multiple debuggers and need one + // instance of the command each - the implementing function is meant to + // create a new instance of the command each time it is invoked. + parent->LoadSubCommand(command->GetCommandName().str().c_str(), command); } } } |

