diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-09-10 00:48:33 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-09-10 00:48:33 +0000 |
commit | 7c575b3b3ae4aea7403f1bc78a6632cec58b8879 (patch) | |
tree | 262f8ed7da9e1710ab2dbdf60f01a6d00383d121 /lldb/source/Interpreter/OptionGroupWatchpoint.cpp | |
parent | 964d758d17bad31b5b3b713827e613c444476d91 (diff) | |
download | bcm5719-llvm-7c575b3b3ae4aea7403f1bc78a6632cec58b8879.tar.gz bcm5719-llvm-7c575b3b3ae4aea7403f1bc78a6632cec58b8879.zip |
Refactoring: replace a bunch of static array size computation or hardcoded constant
with a template function 'arraysize(static_array)', defined in Utils.h.
llvm-svn: 139444
Diffstat (limited to 'lldb/source/Interpreter/OptionGroupWatchpoint.cpp')
-rw-r--r-- | lldb/source/Interpreter/OptionGroupWatchpoint.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Interpreter/OptionGroupWatchpoint.cpp b/lldb/source/Interpreter/OptionGroupWatchpoint.cpp index 6d1fcb75e5b..be1bf57f51a 100644 --- a/lldb/source/Interpreter/OptionGroupWatchpoint.cpp +++ b/lldb/source/Interpreter/OptionGroupWatchpoint.cpp @@ -15,6 +15,7 @@ // Project includes #include "lldb/lldb-enumerations.h" #include "lldb/Interpreter/Args.h" +#include "lldb/Utility/Utils.h" using namespace lldb; using namespace lldb_private; @@ -84,7 +85,5 @@ OptionGroupWatchpoint::GetDefinitions () uint32_t OptionGroupWatchpoint::GetNumDefinitions () { - return 1; + return arraysize(g_option_table); } - - |