A raw_ostream that writes to an SmallVector or SmallString. More...
#include "llvm/Support/raw_ostream.h"
ExtraSize bytes for stream data. N in hexadecimal, without any prefix or padding. Str, turning '\', '\t', 'A raw_ostream that writes to an SmallVector or SmallString.
This is a simple adaptor class. This class does not encounter output errors. raw_svector_ostream operates without a buffer, delegating all memory management to the SmallString. Thus the SmallString is always up-to-date, may be used directly and there is no need to call flush().
Definition at line 692 of file raw_ostream.h.
Construct a new raw_svector_ostream.
Definition at line 708 of file raw_ostream.h.
References llvm::raw_ostream::OK_SVecStream, llvm::raw_pwrite_stream::raw_pwrite_stream(), and llvm::raw_ostream::SetUnbuffered().
Referenced by llvm::buffer_ostream::buffer_ostream(), and llvm::buffer_unique_ostream::buffer_unique_ostream().
Definition at line 722 of file raw_ostream.h.
Definition at line 970 of file raw_ostream.cpp.
References llvm::raw_ostream::OK_SVecStream.
If possible, pre-allocate ExtraSize bytes for stream data.
i.e. it extends internal buffers to keep additional ExtraSize bytes. So that the stream could keep at least tell() + ExtraSize bytes without re-allocations. reserveExtraSpace() does not change the size/data of the stream.
Reimplemented from llvm::raw_ostream.
Definition at line 724 of file raw_ostream.h.
References llvm::raw_ostream::tell().
Referenced by llvm::mcdxbc::RootSignatureDesc::write().
Return a StringRef for the vector contents.
Definition at line 721 of file raw_ostream.h.
Referenced by llvm::ModuloScheduleTestAnnotater::annotate(), llvm::ComputeASanStackFrameDescription(), convertSRPoints(), emitDebugLabelComment(), llvm::GlobalMergeFunc::emitFunctionMap(), llvm::AMDGPUAsmPrinter::emitImplicitDef(), llvm::AsmPrinter::emitImplicitDef(), llvm::XtensaTargetAsmStreamer::emitLiteral(), llvm::MCTargetStreamer::emitRawBytes(), llvm::NVPTXTargetStreamer::emitRawBytes(), llvm::MCStreamer::emitSLEB128IntValue(), llvm::MCStreamer::emitULEB128IntValue(), llvm::MCTargetStreamer::emitValue(), llvm::AMDGPU::generateCrashCode(), llvm::opt::Arg::getAsString(), llvm::BlockFrequencyInfoImplBase::getBlockFreq(), llvm::ExecutionEngine::getConstantValue(), llvm::AMDGPUMangledLibFunc::getName(), llvm::VecDesc::getVectorFunctionABIVariantString(), LLVMTargetMachineEmitToMemoryBuffer(), llvm::ExecutionEngine::LoadValueFromMemory(), llvm::Pattern::printSubstitutions(), llvm::Pattern::printVariableDefs(), llvm::opt::Arg::render(), llvm::report_fatal_error(), llvm::AMDGPUPALMetadata::setEntryPoint(), solveTypeName(), llvm::UpgradeSectionAttributes(), llvm::MachObjectWriter::writeObject(), llvm::WinCOFFWriter::writeObject(), llvm::yaml::yaml2ObjectFile(), llvm::yaml::yaml2offload(), llvm::yaml::yamlize(), llvm::buffer_ostream::~buffer_ostream(), and llvm::buffer_unique_ostream::~buffer_unique_ostream().