summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Language.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/Core/Language.cpp
parent040c0da57830c5bb0a99be4eb1c2a97d38c78be0 (diff)
downloadbcm5719-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/Core/Language.cpp')
-rw-r--r--lldb/source/Core/Language.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/Language.cpp b/lldb/source/Core/Language.cpp
index af62af37da0..1ffd5aadc52 100644
--- a/lldb/source/Core/Language.cpp
+++ b/lldb/source/Core/Language.cpp
@@ -10,6 +10,7 @@
#include "lldb/lldb-private.h"
#include "lldb/Core/Language.h"
#include "lldb/Core/Stream.h"
+#include "llvm/ADT/STLExtras.h"
#include <string.h>
using namespace lldb;
@@ -48,8 +49,7 @@ g_languages[] =
{ { "python" , NULL , "Python" } }
};
-static const size_t
-g_num_languages = sizeof(g_languages)/sizeof(LanguageStrings);
+static const size_t g_num_languages = llvm::array_lengthof(g_languages);
Language::Language(LanguageType language) :
m_language (language)
OpenPOWER on IntegriCloud