diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-06-27 05:17:41 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-06-27 05:17:41 +0000 |
commit | 28606954bfe08ab4fb146cc85f2d4c0aff5cf1c2 (patch) | |
tree | 2c3f2fd83144860783b0f5cc3b82c0f3a3d3912f /lldb/source/Commands/CommandObjectExpression.cpp | |
parent | 040c0da57830c5bb0a99be4eb1c2a97d38c78be0 (diff) | |
download | bcm5719-llvm-28606954bfe08ab4fb146cc85f2d4c0aff5cf1c2.tar.gz bcm5719-llvm-28606954bfe08ab4fb146cc85f2d4c0aff5cf1c2.zip |
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/CommandObjectExpression.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectExpression.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp index 28fd322109e..bfce3244a92 100644 --- a/lldb/source/Commands/CommandObjectExpression.cpp +++ b/lldb/source/Commands/CommandObjectExpression.cpp @@ -34,6 +34,7 @@ #include "lldb/Target/StackFrame.h" #include "lldb/Target/Target.h" #include "lldb/Target/Thread.h" +#include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringRef.h" using namespace lldb; @@ -71,7 +72,7 @@ CommandObjectExpression::CommandOptions::g_option_table[] = uint32_t CommandObjectExpression::CommandOptions::GetNumDefinitions () { - return sizeof(g_option_table)/sizeof(OptionDefinition); + return llvm::array_lengthof(g_option_table); } Error |