Home
last modified time | relevance | path

Searched refs:FDOrErr (Results 1 – 11 of 11) sorted by relevance

/external/llvm-project/llvm/tools/llvm-xray/
Dxray-fdr-dump.cpp38 auto FDOrErr = sys::fs::openNativeFileForRead(DumpInput); in __anon236ebeec0102() local
39 if (!FDOrErr) in __anon236ebeec0102()
40 return FDOrErr.takeError(); in __anon236ebeec0102()
49 *FDOrErr, sys::fs::mapped_file_region::mapmode::readonly, FileSize, 0, in __anon236ebeec0102()
51 sys::fs::closeFile(*FDOrErr); in __anon236ebeec0102()
/external/llvm-project/llvm/lib/LTO/
DCaching.cpp42 Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForRead( in localCache() local
45 if (FDOrErr) { in localCache()
47 MemoryBuffer::getOpenFile(*FDOrErr, EntryPath, in localCache()
50 sys::fs::closeFile(*FDOrErr); in localCache()
57 EC = errorToErrorCode(FDOrErr.takeError()); in localCache()
DThinLTOCodeGenerator.cpp374 Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForRead( in tryLoadingBuffer() local
376 if (!FDOrErr) in tryLoadingBuffer()
377 return errorToErrorCode(FDOrErr.takeError()); in tryLoadingBuffer()
379 *FDOrErr, EntryPath, /*FileSize=*/-1, /*RequiresNullTerminator=*/false); in tryLoadingBuffer()
380 sys::fs::closeFile(*FDOrErr); in tryLoadingBuffer()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/
DCaching.cpp42 Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForRead( in localCache() local
45 if (FDOrErr) { in localCache()
47 MemoryBuffer::getOpenFile(*FDOrErr, EntryPath, in localCache()
50 sys::fs::closeFile(*FDOrErr); in localCache()
57 EC = errorToErrorCode(FDOrErr.takeError()); in localCache()
DThinLTOCodeGenerator.cpp358 Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForRead( in tryLoadingBuffer() local
360 if (!FDOrErr) in tryLoadingBuffer()
361 return errorToErrorCode(FDOrErr.takeError()); in tryLoadingBuffer()
363 *FDOrErr, EntryPath, /*FileSize=*/-1, /*RequiresNullTerminator=*/false); in tryLoadingBuffer()
364 sys::fs::closeFile(*FDOrErr); in tryLoadingBuffer()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DMemoryBuffer.cpp247 Expected<sys::fs::file_t> FDOrErr = in getFileAux() local
249 if (!FDOrErr) in getFileAux()
250 return errorToErrorCode(FDOrErr.takeError()); in getFileAux()
251 sys::fs::file_t FD = *FDOrErr; in getFileAux()
366 Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForReadWrite( in getReadWriteFile() local
368 if (!FDOrErr) in getReadWriteFile()
369 return errorToErrorCode(FDOrErr.takeError()); in getReadWriteFile()
370 sys::fs::file_t FD = *FDOrErr; in getReadWriteFile()
508 Expected<sys::fs::file_t> FDOrErr = in getFileAsStream() local
510 if (!FDOrErr) in getFileAsStream()
[all …]
DVirtualFileSystem.cpp299 Expected<file_t> FDOrErr = sys::fs::openNativeFileForRead( in openFileForRead() local
301 if (!FDOrErr) in openFileForRead()
302 return errorToErrorCode(FDOrErr.takeError()); in openFileForRead()
304 new RealFile(*FDOrErr, Name.str(), RealName.str())); in openFileForRead()
/external/llvm-project/llvm/lib/Support/
DMemoryBuffer.cpp261 Expected<sys::fs::file_t> FDOrErr = in getFileAux() local
263 if (!FDOrErr) in getFileAux()
264 return errorToErrorCode(FDOrErr.takeError()); in getFileAux()
265 sys::fs::file_t FD = *FDOrErr; in getFileAux()
380 Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForReadWrite( in getReadWriteFile() local
382 if (!FDOrErr) in getReadWriteFile()
383 return errorToErrorCode(FDOrErr.takeError()); in getReadWriteFile()
384 sys::fs::file_t FD = *FDOrErr; in getReadWriteFile()
522 Expected<sys::fs::file_t> FDOrErr = in getFileAsStream() local
524 if (!FDOrErr) in getFileAsStream()
[all …]
DVirtualFileSystem.cpp299 Expected<file_t> FDOrErr = sys::fs::openNativeFileForRead( in openFileForRead() local
301 if (!FDOrErr) in openFileForRead()
302 return errorToErrorCode(FDOrErr.takeError()); in openFileForRead()
304 new RealFile(*FDOrErr, Name.str(), RealName.str())); in openFileForRead()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DArchiveWriter.cpp79 auto FDOrErr = sys::fs::openNativeFileForRead(FileName); in getFile() local
80 if (!FDOrErr) in getFile()
81 return FDOrErr.takeError(); in getFile()
82 sys::fs::file_t FD = *FDOrErr; in getFile()
/external/llvm-project/llvm/lib/Object/
DArchiveWriter.cpp81 auto FDOrErr = sys::fs::openNativeFileForRead(FileName); in getFile() local
82 if (!FDOrErr) in getFile()
83 return FDOrErr.takeError(); in getFile()
84 sys::fs::file_t FD = *FDOrErr; in getFile()