summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/NamedOptionValue.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-10-25 06:44:01 +0000
committerGreg Clayton <gclayton@apple.com>2011-10-25 06:44:01 +0000
commit1deb79623896414dae71b7827de8c9ba2eb3bdd9 (patch)
tree47b4b9f36f0aaa3392665144a0c2ee28f947522f /lldb/source/Interpreter/NamedOptionValue.cpp
parentd4268d91e7f1df42776a8e1994c7415fc04d7571 (diff)
downloadbcm5719-llvm-1deb79623896414dae71b7827de8c9ba2eb3bdd9.tar.gz
bcm5719-llvm-1deb79623896414dae71b7827de8c9ba2eb3bdd9.zip
Updated all commands that use a "--format" / "-f" options to use the new
OptionGroupFormat. Updated OptionGroupFormat to be able to also use the "--size" and "--count" options. Commands that use a OptionGroupFormat instance can choose which of the options they want by initializing OptionGroupFormat accordingly. Clients can either get only the "--format", "--format" + "--size", or "--format" + "--size" + "--count". This is in preparation for upcoming chnages where there are alternate ways (GDB format specification) to set a format. llvm-svn: 142911
Diffstat (limited to 'lldb/source/Interpreter/NamedOptionValue.cpp')
-rw-r--r--lldb/source/Interpreter/NamedOptionValue.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lldb/source/Interpreter/NamedOptionValue.cpp b/lldb/source/Interpreter/NamedOptionValue.cpp
index ab4f4d0da64..f4c0e345882 100644
--- a/lldb/source/Interpreter/NamedOptionValue.cpp
+++ b/lldb/source/Interpreter/NamedOptionValue.cpp
@@ -368,14 +368,11 @@ Error
OptionValueFormat::SetValueFromCString (const char *value_cstr)
{
Format new_format;
- uint32_t new_byte_size = UINT32_MAX;
- Error error (Args::StringToFormat(value_cstr, new_format, m_byte_size_prefix_ok ? &new_byte_size : NULL));
+ Error error (Args::StringToFormat (value_cstr, new_format, NULL));
if (error.Success())
{
m_value_was_set = true;
m_current_value = new_format;
- if (new_byte_size != UINT32_MAX)
- m_current_byte_size = new_byte_size;
}
return error;
}
OpenPOWER on IntegriCloud