LLVM API Documentation

Public Member Functions | Protected Attributes
llvm::ObjectBuffer Class Reference

#include <ObjectBuffer.h>

Inheritance diagram for llvm::ObjectBuffer:
Inheritance graph
[legend]
Collaboration diagram for llvm::ObjectBuffer:
Collaboration graph
[legend]

List of all members.

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< MemoryBufferBuffer

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

Definition at line 39 of file ObjectBuffer.h.

References Buffer.

Definition at line 40 of file ObjectBuffer.h.

References Buffer.

size_t llvm::ObjectBuffer::getBufferSize ( ) const [inline]
const char* llvm::ObjectBuffer::getBufferStart ( ) const [inline]

Definition at line 35 of file ObjectBuffer.h.

References Buffer.

Referenced by llvm::ObjectBufferStream::flush().


Member Data Documentation

std::unique_ptr<MemoryBuffer> llvm::ObjectBuffer::Buffer [protected]

The documentation for this class was generated from the following files: