summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-09-23 09:56:53 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-09-23 09:56:53 +0000
commit48d38ca6ac1ae2906fadbd7fcd067f9c7d641cf5 (patch)
tree95759f4cbaa072fbe08a3a526c1de9b425a92f6c /lldb/source/Interpreter
parentc60913f16280b2f983fc4423516fe04d7d11c70b (diff)
downloadbcm5719-llvm-48d38ca6ac1ae2906fadbd7fcd067f9c7d641cf5.tar.gz
bcm5719-llvm-48d38ca6ac1ae2906fadbd7fcd067f9c7d641cf5.zip
[lldb][NFC] Remove dead code in Options::HandleOptionArgumentCompletion
llvm-svn: 372572
Diffstat (limited to 'lldb/source/Interpreter')
-rw-r--r--lldb/source/Interpreter/Options.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/lldb/source/Interpreter/Options.cpp b/lldb/source/Interpreter/Options.cpp
index d2f2cfa9185..44abc1403b3 100644
--- a/lldb/source/Interpreter/Options.cpp
+++ b/lldb/source/Interpreter/Options.cpp
@@ -752,16 +752,9 @@ void Options::HandleOptionArgumentCompletion(
// See if this is an enumeration type option, and if so complete it here:
const auto &enum_values = opt_defs[opt_defs_index].enum_values;
- if (!enum_values.empty()) {
- std::string match_string(
- request.GetParsedLine().GetArgumentAtIndex(opt_arg_pos),
- request.GetParsedLine().GetArgumentAtIndex(opt_arg_pos) +
- request.GetCursorCharPosition());
-
- for (const auto &enum_value : enum_values) {
+ if (!enum_values.empty())
+ for (const auto &enum_value : enum_values)
request.TryCompleteCurrentArg(enum_value.string_value);
- }
- }
// If this is a source file or symbol type completion, and there is a -shlib
// option somewhere in the supplied arguments, then make a search filter for
OpenPOWER on IntegriCloud