
This renames the LLDB error class to Status, as discussed on the lldb-dev mailing list. A change of this magnitude cannot easily be done without find and replace, but that has potential to catch unwanted occurrences of common strings such as "Error". Every effort was made to find all the obvious things such as the word "Error" appearing in a string, etc, but it's possible there are still some lingering occurences left around. Hopefully nothing too serious. llvm-svn: 302872
26 lines
865 B
C++
26 lines
865 B
C++
//===-- source/Host/common/PipeBase.cpp -------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "lldb/Host/PipeBase.h"
|
|
|
|
using namespace lldb_private;
|
|
|
|
PipeBase::~PipeBase() = default;
|
|
|
|
Status PipeBase::OpenAsWriter(llvm::StringRef name,
|
|
bool child_process_inherit) {
|
|
return OpenAsWriterWithTimeout(name, child_process_inherit,
|
|
std::chrono::microseconds::zero());
|
|
}
|
|
|
|
Status PipeBase::Read(void *buf, size_t size, size_t &bytes_read) {
|
|
return ReadWithTimeout(buf, size, std::chrono::microseconds::zero(),
|
|
bytes_read);
|
|
}
|