diff options
author | Jim Ingham <jingham@apple.com> | 2014-06-27 16:02:55 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2014-06-27 16:02:55 +0000 |
commit | c1fdb889a9e24fb6732b10c26568e5af4ada2f68 (patch) | |
tree | a725da104119ddbba8cf2004d446ca6f5f8d0c06 /lldb/tools/debugserver/source/TTYState.h | |
parent | b673b4b187988f93a8f4ab8c91189ed22645ea40 (diff) | |
download | bcm5719-llvm-c1fdb889a9e24fb6732b10c26568e5af4ada2f68.tar.gz bcm5719-llvm-c1fdb889a9e24fb6732b10c26568e5af4ada2f68.zip |
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
Diffstat (limited to 'lldb/tools/debugserver/source/TTYState.h')
-rw-r--r-- | lldb/tools/debugserver/source/TTYState.h | 6 |
1 files changed, 2 insertions, 4 deletions
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 <termios.h> #include <stdint.h> -#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 |