LLVM API Documentation
#include <raw_ostream.h>
Public Member Functions | |
raw_svector_ostream (SmallVectorImpl< char > &O) | |
~raw_svector_ostream () | |
void | resync () |
StringRef | str () |
raw_svector_ostream - A raw_ostream that writes to an SmallVector or SmallString. This is a simple adaptor class. This class does not encounter output errors.
Definition at line 456 of file raw_ostream.h.
raw_svector_ostream::raw_svector_ostream | ( | SmallVectorImpl< char > & | O | ) | [explicit] |
Construct a new raw_svector_ostream.
O | The vector to write to; this should generally have at least 128 bytes free to avoid any extraneous memory overhead. |
Definition at line 698 of file raw_ostream.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::capacity(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::SmallVectorImpl< T >::reserve(), llvm::raw_ostream::SetBuffer(), and llvm::SmallVectorTemplateCommon< T, typename >::size().
Definition at line 707 of file raw_ostream.cpp.
References llvm::raw_ostream::flush().
void raw_svector_ostream::resync | ( | ) |
resync - This is called when the SmallVector we're appending to is changed outside of the raw_svector_ostream's control. It is only safe to do this if the raw_svector_ostream has previously been flushed.
Definition at line 715 of file raw_ostream.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::capacity(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::raw_ostream::GetNumBytesInBuffer(), llvm::SmallVectorImpl< T >::reserve(), llvm::raw_ostream::SetBuffer(), and llvm::SmallVectorTemplateCommon< T, typename >::size().
Referenced by emitComments(), and llvm::StructType::setName().
str - Flushes the stream contents to the target vector and return a StringRef for the vector contents.
Definition at line 742 of file raw_ostream.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::raw_ostream::flush(), and llvm::SmallVectorTemplateCommon< T, typename >::size().
Referenced by llvm::ComputeASanStackFrameLayout(), llvm::NVPTXAsmPrinter::doInitialization(), llvm::MCDwarfLineAddr::Emit(), llvm::MCDwarfFrameEmitter::EmitAdvanceLoc(), emitDebugValueComment(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), llvm::MCStreamer::EmitSLEB128IntValue(), llvm::MCStreamer::EmitULEB128IntValue(), llvm::opt::Arg::getAsString(), llvm::ExecutionEngine::getConstantValue(), LLVMDisasmInstruction(), llvm::ExecutionEngine::LoadValueFromMemory(), llvm::opt::Arg::render(), llvm::report_fatal_error(), and llvm::StructType::setName().