summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/OptionGroupBoolean.cpp
diff options
context:
space:
mode:
authorVirgile Bello <virgile.bello@gmail.com>2013-09-05 16:42:23 +0000
committerVirgile Bello <virgile.bello@gmail.com>2013-09-05 16:42:23 +0000
commite2607b50ea6b6a651a3a640ed6ccf80f37fca182 (patch)
tree848082207b6646690b580b4fe252166ddbab9e0f /lldb/source/Interpreter/OptionGroupBoolean.cpp
parentf792acb20fd0233f2e5cf400ceabd4f2416db3b5 (diff)
downloadbcm5719-llvm-e2607b50ea6b6a651a3a640ed6ccf80f37fca182.tar.gz
bcm5719-llvm-e2607b50ea6b6a651a3a640ed6ccf80f37fca182.zip
Add OptionParser.h
llvm-svn: 190063
Diffstat (limited to 'lldb/source/Interpreter/OptionGroupBoolean.cpp')
-rw-r--r--lldb/source/Interpreter/OptionGroupBoolean.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/OptionGroupBoolean.cpp b/lldb/source/Interpreter/OptionGroupBoolean.cpp
index 5b5b38478b0..feb135315e1 100644
--- a/lldb/source/Interpreter/OptionGroupBoolean.cpp
+++ b/lldb/source/Interpreter/OptionGroupBoolean.cpp
@@ -30,7 +30,7 @@ OptionGroupBoolean::OptionGroupBoolean (uint32_t usage_mask,
m_option_definition.required = required;
m_option_definition.long_option = long_option;
m_option_definition.short_option = short_option;
- m_option_definition.option_has_arg = no_argument_toggle_default ? no_argument : required_argument;
+ m_option_definition.option_has_arg = no_argument_toggle_default ? OptionParser::eNoArgument : OptionParser::eRequiredArgument;
m_option_definition.enum_values = NULL;
m_option_definition.completion_type = 0;
m_option_definition.argument_type = eArgTypeBoolean;
@@ -47,7 +47,7 @@ OptionGroupBoolean::SetOptionValue (CommandInterpreter &interpreter,
const char *option_arg)
{
Error error;
- if (m_option_definition.option_has_arg == no_argument)
+ if (m_option_definition.option_has_arg == OptionParser::eNoArgument)
{
// Not argument, toggle the default value and mark the option as having been set
m_value.SetCurrentValue (!m_value.GetDefaultValue());
OpenPOWER on IntegriCloud