diff options
Diffstat (limited to 'contrib/llvm-project/lldb/source/Commands/CommandObjectHelp.cpp')
-rw-r--r-- | contrib/llvm-project/lldb/source/Commands/CommandObjectHelp.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/contrib/llvm-project/lldb/source/Commands/CommandObjectHelp.cpp b/contrib/llvm-project/lldb/source/Commands/CommandObjectHelp.cpp index 10aa49ae01ba..ddb006e52d2c 100644 --- a/contrib/llvm-project/lldb/source/Commands/CommandObjectHelp.cpp +++ b/contrib/llvm-project/lldb/source/Commands/CommandObjectHelp.cpp @@ -74,7 +74,7 @@ CommandObjectHelp::CommandOptions::GetDefinitions() { return llvm::ArrayRef(g_help_options); } -bool CommandObjectHelp::DoExecute(Args &command, CommandReturnObject &result) { +void CommandObjectHelp::DoExecute(Args &command, CommandReturnObject &result) { CommandObject::CommandMap::iterator pos; CommandObject *cmd_obj; const size_t argc = command.GetArgumentCount(); @@ -142,14 +142,14 @@ bool CommandObjectHelp::DoExecute(Args &command, CommandReturnObject &result) { } s.Printf("\n"); result.AppendError(s.GetString()); - return false; + return; } else if (!sub_cmd_obj) { StreamString error_msg_stream; GenerateAdditionalHelpAvenuesMessage( &error_msg_stream, cmd_string.c_str(), m_interpreter.GetCommandPrefix(), sub_command.c_str()); result.AppendError(error_msg_stream.GetString()); - return false; + return; } else { GenerateAdditionalHelpAvenuesMessage( &result.GetOutputStream(), cmd_string.c_str(), @@ -197,8 +197,6 @@ bool CommandObjectHelp::DoExecute(Args &command, CommandReturnObject &result) { } } } - - return result.Succeeded(); } void CommandObjectHelp::HandleCompletion(CompletionRequest &request) { |