14 #ifndef LLVM_SUPPORT_FILEOUTPUTBUFFER_H
15 #define LLVM_SUPPORT_FILEOUTPUTBUFFER_H
20 #include "llvm/Support/DataTypes.h"
49 return (uint8_t*)
Region->data();
size_t getBufferSize() const
Returns size of the buffer.
A single entry single exit Region.
uint8_t * getBufferEnd()
Returns a pointer to the end of the buffer.
static error_code create(StringRef FilePath, size_t Size, OwningPtr< FileOutputBuffer > &Result, unsigned Flags=0)
#define LLVM_DELETED_FUNCTION
error_code commit(int64_t NewSmallerSize=-1)
StringRef getPath() const
Returns path where file will show up if buffer is committed.
uint8_t * getBufferStart()
Returns a pointer to the start of the buffer.