LLVM
8.0.1
|
#include "llvm/Support/FileOutputBuffer.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Memory.h"
#include "llvm/Support/Path.h"
#include <system_error>
#include <unistd.h>
Go to the source code of this file.
Functions | |
static Expected< std::unique_ptr< InMemoryBuffer > > | createInMemoryBuffer (StringRef Path, size_t Size, unsigned Mode) |
static Expected< std::unique_ptr< OnDiskBuffer > > | createOnDiskBuffer (StringRef Path, size_t Size, bool InitExisting, unsigned Mode) |
|
static |
Definition at line 109 of file FileOutputBuffer.cpp.
References llvm::sys::Memory::allocateMappedMemory(), llvm::errorCodeToError(), llvm::sys::Memory::MF_READ, llvm::sys::Memory::MF_WRITE, and Mode.
Referenced by llvm::FileOutputBuffer::create().
|
static |
Definition at line 119 of file FileOutputBuffer.cpp.
References llvm::consumeError(), llvm::sys::fs::copy_file(), llvm::sys::fs::TempFile::create(), llvm::sys::fs::TempFile::discard(), llvm::errorCodeToError(), llvm::sys::fs::TempFile::FD, llvm::ARMBuildAttrs::File, llvm::sys::fs::mapped_file_region::readwrite, llvm::sys::fs::resize_file(), Size, and llvm::Expected< T >::takeError().
Referenced by llvm::FileOutputBuffer::create().