diff options
author | Pavel Labath <labath@google.com> | 2016-11-25 12:22:32 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-11-25 12:22:32 +0000 |
commit | 2f159a5f93250706ad5bed6c2e8521ead4df749f (patch) | |
tree | 3051d9521e10342ae738046f79528a9054974091 /lldb/source/Core/Communication.cpp | |
parent | 3043fd8ff087b1b577e363f33bbc1b6e1e8d5cdc (diff) | |
download | bcm5719-llvm-2f159a5f93250706ad5bed6c2e8521ead4df749f.tar.gz bcm5719-llvm-2f159a5f93250706ad5bed6c2e8521ead4df749f.zip |
Introduce Chrono to the Connection class. NFCI.
llvm-svn: 287922
Diffstat (limited to 'lldb/source/Core/Communication.cpp')
-rw-r--r-- | lldb/source/Core/Communication.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lldb/source/Core/Communication.cpp b/lldb/source/Core/Communication.cpp index c82e2fe9368..113a847953d 100644 --- a/lldb/source/Core/Communication.cpp +++ b/lldb/source/Core/Communication.cpp @@ -278,11 +278,8 @@ size_t Communication::ReadFromConnection(void *dst, size_t dst_len, ConnectionStatus &status, Error *error_ptr) { lldb::ConnectionSP connection_sp(m_connection_sp); - if (connection_sp) { - return connection_sp->Read(dst, dst_len, - timeout ? timeout->count() : UINT32_MAX, status, - error_ptr); - } + if (connection_sp) + return connection_sp->Read(dst, dst_len, timeout, status, error_ptr); if (error_ptr) error_ptr->SetErrorString("Invalid connection."); |