diff options
author | Pavel Labath <labath@google.com> | 2018-04-10 09:03:59 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2018-04-10 09:03:59 +0000 |
commit | 47cbf4a07bdfe8f5ef56be7a0caf003f91a00a9e (patch) | |
tree | 9d619d8e076a6c0a5113264c2b3d96369f85e275 /lldb/source/Interpreter/OptionGroupWatchpoint.cpp | |
parent | bfa20dddcbf31e05be41c3bd993bf25578bfa179 (diff) | |
download | bcm5719-llvm-47cbf4a07bdfe8f5ef56be7a0caf003f91a00a9e.tar.gz bcm5719-llvm-47cbf4a07bdfe8f5ef56be7a0caf003f91a00a9e.zip |
Move Args::StringTo*** functions to a new OptionArgParser class
Summary:
The idea behind this is to move the functionality which depend on other lldb
classes into a separate class. This way, the Args class can be turned
into a lightweight arc+argv wrapper and moved into the lower lldb
layers.
Reviewers: jingham, zturner
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D44306
llvm-svn: 329677
Diffstat (limited to 'lldb/source/Interpreter/OptionGroupWatchpoint.cpp')
-rw-r--r-- | lldb/source/Interpreter/OptionGroupWatchpoint.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Interpreter/OptionGroupWatchpoint.cpp b/lldb/source/Interpreter/OptionGroupWatchpoint.cpp index dd4b8c86c91..0431fefaa7f 100644 --- a/lldb/source/Interpreter/OptionGroupWatchpoint.cpp +++ b/lldb/source/Interpreter/OptionGroupWatchpoint.cpp @@ -14,7 +14,7 @@ // Other libraries and framework includes // Project includes #include "lldb/Host/OptionParser.h" -#include "lldb/Interpreter/Args.h" +#include "lldb/Interpreter/OptionArgParser.h" #include "lldb/lldb-enumerations.h" using namespace lldb; @@ -65,7 +65,7 @@ OptionGroupWatchpoint::SetOptionValue(uint32_t option_idx, switch (short_option) { case 'w': { WatchType tmp_watch_type; - tmp_watch_type = (WatchType)Args::StringToOptionEnum( + tmp_watch_type = (WatchType)OptionArgParser::ToOptionEnum( option_arg, g_option_table[option_idx].enum_values, 0, error); if (error.Success()) { watch_type = tmp_watch_type; @@ -74,7 +74,7 @@ OptionGroupWatchpoint::SetOptionValue(uint32_t option_idx, break; } case 's': - watch_size = (uint32_t)Args::StringToOptionEnum( + watch_size = (uint32_t)OptionArgParser::ToOptionEnum( option_arg, g_option_table[option_idx].enum_values, 0, error); break; |