summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/OptionValueBoolean.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-04-10 09:03:59 +0000
committerPavel Labath <labath@google.com>2018-04-10 09:03:59 +0000
commit47cbf4a07bdfe8f5ef56be7a0caf003f91a00a9e (patch)
tree9d619d8e076a6c0a5113264c2b3d96369f85e275 /lldb/source/Interpreter/OptionValueBoolean.cpp
parentbfa20dddcbf31e05be41c3bd993bf25578bfa179 (diff)
downloadbcm5719-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/OptionValueBoolean.cpp')
-rw-r--r--lldb/source/Interpreter/OptionValueBoolean.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/OptionValueBoolean.cpp b/lldb/source/Interpreter/OptionValueBoolean.cpp
index 2cb84cd6abb..43c82338892 100644
--- a/lldb/source/Interpreter/OptionValueBoolean.cpp
+++ b/lldb/source/Interpreter/OptionValueBoolean.cpp
@@ -14,7 +14,7 @@
// Other libraries and framework includes
// Project includes
#include "lldb/Host/PosixApi.h"
-#include "lldb/Interpreter/Args.h"
+#include "lldb/Interpreter/OptionArgParser.h"
#include "lldb/Utility/Stream.h"
#include "lldb/Utility/StringList.h"
#include "llvm/ADT/STLExtras.h"
@@ -47,7 +47,7 @@ Status OptionValueBoolean::SetValueFromString(llvm::StringRef value_str,
case eVarSetOperationReplace:
case eVarSetOperationAssign: {
bool success = false;
- bool value = Args::StringToBoolean(value_str, false, &success);
+ bool value = OptionArgParser::ToBoolean(value_str, false, &success);
if (success) {
m_value_was_set = true;
m_current_value = value;
OpenPOWER on IntegriCloud