LLVM API Documentation
#include <ObjectBuffer.h>
Public Member Functions | |
ObjectBufferStream () | |
virtual | ~ObjectBufferStream () |
raw_ostream & | getOStream () |
void | flush () |
Protected Attributes | |
SmallVector< char, 4096 > | SV |
raw_svector_ostream | OS |
This class encapsulates the SmallVector and raw_svector_ostream needed to generate an object using MC code emission while providing a common ObjectBuffer interface for access to the memory once the object has been generated.
Definition at line 53 of file ObjectBuffer.h.
llvm::ObjectBufferStream::ObjectBufferStream | ( | ) | [inline] |
Definition at line 56 of file ObjectBuffer.h.
virtual llvm::ObjectBufferStream::~ObjectBufferStream | ( | ) | [inline, virtual] |
Definition at line 57 of file ObjectBuffer.h.
void llvm::ObjectBufferStream::flush | ( | ) | [inline] |
Definition at line 60 of file ObjectBuffer.h.
References llvm::ObjectBuffer::Buffer, llvm::SmallVectorTemplateCommon< T, typename >::data(), llvm::raw_ostream::flush(), llvm::ObjectBuffer::getMemBuffer(), OS, llvm::SmallVectorTemplateCommon< T, typename >::size(), and SV.
raw_ostream& llvm::ObjectBufferStream::getOStream | ( | ) | [inline] |
Definition at line 59 of file ObjectBuffer.h.
References OS.
raw_svector_ostream llvm::ObjectBufferStream::OS [protected] |
Definition at line 71 of file ObjectBuffer.h.
Referenced by flush(), and getOStream().
SmallVector<char, 4096> llvm::ObjectBufferStream::SV [protected] |
Definition at line 70 of file ObjectBuffer.h.
Referenced by flush().