From c1fdb889a9e24fb6732b10c26568e5af4ada2f68 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Fri, 27 Jun 2014 16:02:55 +0000 Subject: Revert the debugserver part of r211868. While formally a fine change, debugserver doesn't depend on llvm (it really doesn't even depend on anything in lldb) and this nicety isn't worth adding that dependence. llvm-svn: 211903 --- lldb/tools/debugserver/source/TTYState.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lldb/tools/debugserver/source/TTYState.h') diff --git a/lldb/tools/debugserver/source/TTYState.h b/lldb/tools/debugserver/source/TTYState.h index 7d26f5ec004..c01d5125543 100644 --- a/lldb/tools/debugserver/source/TTYState.h +++ b/lldb/tools/debugserver/source/TTYState.h @@ -17,8 +17,6 @@ #include #include -#include "llvm/ADT/STLExtras.h" - class TTYState { public: @@ -52,7 +50,7 @@ public: bool GetState(uint32_t idx, int fd, bool saveProcessGroup); bool SetState(uint32_t idx) const; - uint32_t NumStates() const { return llvm::array_lengthof(m_ttystates); } + uint32_t NumStates() const { return sizeof(m_ttystates)/sizeof(TTYState); } bool ValidStateIndex(uint32_t idx) const { return idx < NumStates(); } protected: @@ -60,4 +58,4 @@ protected: TTYState m_ttystates[2]; }; -#endif +#endif \ No newline at end of file -- cgit v1.2.3