diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-08-22 09:14:42 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-08-22 09:14:42 +0000 |
commit | 494370c101e27c5a4561df864825992087a2d69f (patch) | |
tree | 720181d1b2674237d5930ab21ffc0a8288e238cf /lldb/source/Commands/CommandObjectPlatform.cpp | |
parent | 26f42623986e6d701ab7a17164b490b61fa75e6f (diff) | |
download | bcm5719-llvm-494370c101e27c5a4561df864825992087a2d69f.tar.gz bcm5719-llvm-494370c101e27c5a4561df864825992087a2d69f.zip |
[lldb][NFC] Remove unused return value from HandleOptionArgumentCompletion
llvm-svn: 369635
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectPlatform.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp index 8433fbdc985..43a06310738 100644 --- a/lldb/source/Commands/CommandObjectPlatform.cpp +++ b/lldb/source/Commands/CommandObjectPlatform.cpp @@ -1432,7 +1432,7 @@ public: return llvm::makeArrayRef(g_platform_process_attach_options); } - bool HandleOptionArgumentCompletion( + void HandleOptionArgumentCompletion( CompletionRequest &request, OptionElementVector &opt_element_vector, int opt_element_index, CommandInterpreter &interpreter) override { int opt_arg_pos = opt_element_vector[opt_element_index].opt_arg_pos; @@ -1442,7 +1442,7 @@ public: // Are we in the name? if (GetDefinitions()[opt_defs_index].short_option != 'n') - return false; + return; // Look to see if there is a -P argument provided, and if so use that // plugin, otherwise use the default plugin. @@ -1452,7 +1452,7 @@ public: PlatformSP platform_sp(interpreter.GetPlatform(true)); if (!platform_sp) - return false; + return; ProcessInstanceInfoList process_infos; ProcessInstanceInfoMatch match_info; @@ -1464,14 +1464,14 @@ public: platform_sp->FindProcesses(match_info, process_infos); const uint32_t num_matches = process_infos.GetSize(); if (num_matches == 0) - return false; + return; for (uint32_t i = 0; i < num_matches; ++i) { request.AddCompletion( llvm::StringRef(process_infos.GetProcessNameAtIndex(i), process_infos.GetProcessNameLengthAtIndex(i))); } - return false; + return; } // Options table: Required for subclasses of Options. |