aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectRegister.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-06-27 05:17:41 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-06-27 05:17:41 +0000
commit28606954bfe08ab4fb146cc85f2d4c0aff5cf1c2 (patch)
tree2c3f2fd83144860783b0f5cc3b82c0f3a3d3912f /lldb/source/Commands/CommandObjectRegister.cpp
parent040c0da57830c5bb0a99be4eb1c2a97d38c78be0 (diff)
downloadllvm-28606954bfe08ab4fb146cc85f2d4c0aff5cf1c2.zip
llvm-28606954bfe08ab4fb146cc85f2d4c0aff5cf1c2.tar.gz
llvm-28606954bfe08ab4fb146cc85f2d4c0aff5cf1c2.tar.bz2
lldb: remove adhoc implementation of array_sizeof
Replace adhoc inline implementation of llvm::array_lengthof in favour of the implementation in LLVM. This is simply a cleanup change, no functional change intended. llvm-svn: 211868
Diffstat (limited to 'lldb/source/Commands/CommandObjectRegister.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectRegister.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectRegister.cpp b/lldb/source/Commands/CommandObjectRegister.cpp
index 035fcf9..9c7c350 100644
--- a/lldb/source/Commands/CommandObjectRegister.cpp
+++ b/lldb/source/Commands/CommandObjectRegister.cpp
@@ -31,6 +31,7 @@
#include "lldb/Target/RegisterContext.h"
#include "lldb/Target/SectionLoadList.h"
#include "lldb/Target/Thread.h"
+#include "llvm/ADT/STLExtras.h"
using namespace lldb;
using namespace lldb_private;
@@ -360,7 +361,7 @@ CommandObjectRegisterRead::CommandOptions::g_option_table[] =
uint32_t
CommandObjectRegisterRead::CommandOptions::GetNumDefinitions ()
{
- return sizeof(g_option_table)/sizeof(OptionDefinition);
+ return llvm::array_lengthof(g_option_table);
}