diff options
Diffstat (limited to 'lldb/source/Interpreter/OptionValueArch.cpp')
-rw-r--r-- | lldb/source/Interpreter/OptionValueArch.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lldb/source/Interpreter/OptionValueArch.cpp b/lldb/source/Interpreter/OptionValueArch.cpp index 12b8e603992..3d08780ae6f 100644 --- a/lldb/source/Interpreter/OptionValueArch.cpp +++ b/lldb/source/Interpreter/OptionValueArch.cpp @@ -74,13 +74,11 @@ lldb::OptionValueSP OptionValueArch::DeepCopy() const { } size_t OptionValueArch::AutoComplete(CommandInterpreter &interpreter, - llvm::StringRef s, int match_start_point, - int max_return_elements, - bool &word_complete, StringList &matches) { - word_complete = false; - matches.Clear(); + CompletionRequest &request) { + request.SetWordComplete(false); + request.GetMatches().Clear(); CommandCompletions::InvokeCommonCompletionCallbacks( - interpreter, CommandCompletions::eArchitectureCompletion, s, - match_start_point, max_return_elements, nullptr, word_complete, matches); - return matches.GetSize(); + interpreter, CommandCompletions::eArchitectureCompletion, request, + nullptr); + return request.GetMatches().GetSize(); } |