summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/OptionGroupVariable.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-05-15 23:21:36 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-05-15 23:21:36 +0000
commit6ebc8c459878453cf5d703e04ae79566490c1214 (patch)
tree3cd4cd0ed496583a967969b5419cf1586bbc6a97 /lldb/source/Interpreter/OptionGroupVariable.cpp
parent7a0d86be26ce45becf833c50868c55567bb7a398 (diff)
downloadbcm5719-llvm-6ebc8c459878453cf5d703e04ae79566490c1214.tar.gz
bcm5719-llvm-6ebc8c459878453cf5d703e04ae79566490c1214.zip
Include llvm/ADT/STLExtras.h from lldb/Utility/Utils.h and use llvm::array_lengthof(), instead.
llvm-svn: 156876
Diffstat (limited to 'lldb/source/Interpreter/OptionGroupVariable.cpp')
-rw-r--r--lldb/source/Interpreter/OptionGroupVariable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/OptionGroupVariable.cpp b/lldb/source/Interpreter/OptionGroupVariable.cpp
index ee5aa3bb581..a68a98f9b4c 100644
--- a/lldb/source/Interpreter/OptionGroupVariable.cpp
+++ b/lldb/source/Interpreter/OptionGroupVariable.cpp
@@ -107,9 +107,9 @@ OptionGroupVariable::GetNumDefinitions ()
// Count the "--no-args", "--no-locals" and "--show-globals"
// options if we are showing frame specific options.
if (include_frame_options)
- return arraysize(g_option_table);
+ return llvm::array_lengthof(g_option_table);
else
- return arraysize(g_option_table) - NUM_FRAME_OPTS;
+ return llvm::array_lengthof(g_option_table) - NUM_FRAME_OPTS;
}
OpenPOWER on IntegriCloud