commit | 08af5983cb349e7167f3832d00d36ca611bfa2f1 | [log] [tgz] |
---|---|---|
author | Johnny Chen <johnny.chen@apple.com> | Tue May 15 23:21:36 2012 +0000 |
committer | Johnny Chen <johnny.chen@apple.com> | Tue May 15 23:21:36 2012 +0000 |
tree | 052912a49d5055add657698fccf4df65b939261c | |
parent | f3e5da20b61550f25c40191c777cab31d2496d72 [diff] [blame] |
Include llvm/ADT/STLExtras.h from lldb/Utility/Utils.h and use llvm::array_lengthof(), instead. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156876 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/OptionGroupPlatform.cpp b/source/Interpreter/OptionGroupPlatform.cpp index e6d4e7f..b3c419c 100644 --- a/source/Interpreter/OptionGroupPlatform.cpp +++ b/source/Interpreter/OptionGroupPlatform.cpp
@@ -99,8 +99,8 @@ OptionGroupPlatform::GetNumDefinitions () { if (m_include_platform_option) - return arraysize(g_option_table); - return arraysize(g_option_table) - 1; + return llvm::array_lengthof(g_option_table); + return llvm::array_lengthof(g_option_table) - 1; }