Lines Matching full:error_code
167 error_code MemoryBuffer::getFileOrSTDIN(StringRef Filename,
200 uint64_t Offset, error_code EC)
220 static error_code getMemoryBufferForStream(int FD,
232 return error_code(errno, posix_category());
238 return error_code::success();
241 error_code MemoryBuffer::getFile(StringRef Filename,
251 static error_code getOpenFileImpl(int FD, const char *Filename,
256 error_code MemoryBuffer::getFile(const char *Filename,
261 error_code EC = sys::fs::openFileForRead(Filename, FD);
265 error_code ret = getOpenFileImpl(FD, Filename, result, FileSize, FileSize, 0,
292 error_code EC = sys::fs::status(FD, Status);
313 static error_code getOpenFileImpl(int FD, const char *Filename,
325 error_code EC = sys::fs::status(FD, Status);
344 error_code EC;
348 return error_code::success();
364 return error_code(errno, posix_category());
377 return error_code(errno, posix_category());
390 return error_code::success();
393 error_code MemoryBuffer::getOpenFile(int FD, const char *Filename,
401 error_code MemoryBuffer::getOpenFileSlice(int FD, const char *Filename,
411 error_code MemoryBuffer::getSTDIN(OwningPtr<MemoryBuffer> &result) {