diff options
| author | Mehdi Amini <mehdi.amini@apple.com> | 2016-11-11 05:07:57 +0000 |
|---|---|---|
| committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-11-11 05:07:57 +0000 |
| commit | 665be50e37b370f17e0dcaad79f7bd64af4614cc (patch) | |
| tree | 403fe8c10a9c5fa114132390237f6d118ba56435 /lldb/source/Host/windows/PipeWindows.cpp | |
| parent | e25e6da9173b473bd7075dd8afb816dfd2bd90d8 (diff) | |
| download | bcm5719-llvm-665be50e37b370f17e0dcaad79f7bd64af4614cc.tar.gz bcm5719-llvm-665be50e37b370f17e0dcaad79f7bd64af4614cc.zip | |
Revert unwanted changes in lldb when updating llvm::Error()
My script updated lldb::Errors, and I failed to fix it entirely
before pushing. This restore everything in lldb as it was before
r286561.
llvm-svn: 286565
Diffstat (limited to 'lldb/source/Host/windows/PipeWindows.cpp')
| -rw-r--r-- | lldb/source/Host/windows/PipeWindows.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Host/windows/PipeWindows.cpp b/lldb/source/Host/windows/PipeWindows.cpp index 64b65847506..407f0468e6c 100644 --- a/lldb/source/Host/windows/PipeWindows.cpp +++ b/lldb/source/Host/windows/PipeWindows.cpp @@ -161,7 +161,7 @@ Error PipeWindows::OpenNamedPipe(llvm::StringRef name, ZeroMemory(&m_write_overlapped, sizeof(m_write_overlapped)); } - return Error::success(); + return Error(); } int PipeWindows::GetReadFileDescriptor() const { return m_read_fd; } @@ -217,7 +217,7 @@ void PipeWindows::Close() { CloseWriteFileDescriptor(); } -Error PipeWindows::Delete(llvm::StringRef name) { return Error::success(); } +Error PipeWindows::Delete(llvm::StringRef name) { return Error(); } bool PipeWindows::CanRead() const { return (m_read != INVALID_HANDLE_VALUE); } @@ -273,7 +273,7 @@ Error PipeWindows::ReadWithTimeout(void *buf, size_t size, return Error(::GetLastError(), eErrorTypeWin32); bytes_read = sys_bytes_read; - return Error::success(); + return Error(); } Error PipeWindows::Write(const void *buf, size_t num_bytes, @@ -291,5 +291,5 @@ Error PipeWindows::Write(const void *buf, size_t num_bytes, &sys_bytes_written, TRUE); if (!result) return Error(::GetLastError(), eErrorTypeWin32); - return Error::success(); + return Error(); } |

