LLVM API Documentation
#include <ObjectBuffer.h>
Public Member Functions | |
ObjectBuffer () | |
ObjectBuffer (std::unique_ptr< MemoryBuffer > Buf) | |
virtual | ~ObjectBuffer () |
MemoryBufferRef | getMemBuffer () const |
const char * | getBufferStart () const |
size_t | getBufferSize () const |
StringRef | getBuffer () const |
StringRef | getBufferIdentifier () const |
Protected Attributes | |
std::unique_ptr< MemoryBuffer > | Buffer |
This class acts as a container for the memory buffer used during generation and loading of executable objects using MCJIT and RuntimeDyld. The underlying memory for the object will be owned by the ObjectBuffer instance throughout its lifetime.
Definition at line 28 of file ObjectBuffer.h.
llvm::ObjectBuffer::ObjectBuffer | ( | ) | [inline] |
Definition at line 31 of file ObjectBuffer.h.
llvm::ObjectBuffer::ObjectBuffer | ( | std::unique_ptr< MemoryBuffer > | Buf | ) | [inline] |
Definition at line 32 of file ObjectBuffer.h.
virtual llvm::ObjectBuffer::~ObjectBuffer | ( | ) | [inline, virtual] |
Definition at line 33 of file ObjectBuffer.h.
StringRef llvm::ObjectBuffer::getBuffer | ( | ) | const [inline] |
Definition at line 39 of file ObjectBuffer.h.
References Buffer.
StringRef llvm::ObjectBuffer::getBufferIdentifier | ( | ) | const [inline] |
Definition at line 40 of file ObjectBuffer.h.
References Buffer.
size_t llvm::ObjectBuffer::getBufferSize | ( | ) | const [inline] |
Definition at line 38 of file ObjectBuffer.h.
References Buffer.
Referenced by llvm::RuntimeDyldELF::isCompatibleFormat(), and llvm::RuntimeDyldMachO::isCompatibleFormat().
const char* llvm::ObjectBuffer::getBufferStart | ( | ) | const [inline] |
Definition at line 37 of file ObjectBuffer.h.
References Buffer.
Referenced by llvm::RuntimeDyldELF::isCompatibleFormat(), and llvm::RuntimeDyldMachO::isCompatibleFormat().
MemoryBufferRef llvm::ObjectBuffer::getMemBuffer | ( | ) | const [inline] |
Definition at line 35 of file ObjectBuffer.h.
References Buffer.
Referenced by llvm::ObjectBufferStream::flush().
std::unique_ptr<MemoryBuffer> llvm::ObjectBuffer::Buffer [protected] |
Definition at line 46 of file ObjectBuffer.h.
Referenced by llvm::ObjectBufferStream::flush(), getBuffer(), getBufferIdentifier(), getBufferSize(), getBufferStart(), and getMemBuffer().