LLVM  11.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::BufferByteStreamer Class Referencefinal

#include "CodeGen/AsmPrinter/ByteStreamer.h"

Inheritance diagram for llvm::BufferByteStreamer:
Inheritance graph
Collaboration diagram for llvm::BufferByteStreamer:
Collaboration graph

Public Member Functions

 BufferByteStreamer (SmallVectorImpl< char > &Buffer, std::vector< std::string > &Comments, bool GenerateComments)
void EmitInt8 (uint8_t Byte, const Twine &Comment) override
void emitSLEB128 (uint64_t DWord, const Twine &Comment) override
void emitULEB128 (uint64_t DWord, const Twine &Comment, unsigned PadTo) override

Public Attributes

const bool GenerateComments
 Only verbose textual output needs comments. More...

Additional Inherited Members

- Protected Member Functions inherited from llvm::ByteStreamer
 ~ByteStreamer ()=default
 ByteStreamer (const ByteStreamer &)=default
 ByteStreamer ()=default

Detailed Description

Definition at line 76 of file ByteStreamer.h.

Constructor & Destructor Documentation

◆ BufferByteStreamer()

llvm::BufferByteStreamer::BufferByteStreamer ( SmallVectorImpl< char > &  Buffer,
std::vector< std::string > &  Comments,
bool  GenerateComments 

Definition at line 87 of file ByteStreamer.h.

Member Function Documentation

◆ EmitInt8()

void llvm::BufferByteStreamer::EmitInt8 ( uint8_t  Byte,
const Twine Comment 

◆ emitSLEB128()

void llvm::BufferByteStreamer::emitSLEB128 ( uint64_t  DWord,
const Twine Comment 

Implements llvm::ByteStreamer.

Definition at line 96 of file ByteStreamer.h.

References llvm::encodeSLEB128(), and llvm::Twine::str().

◆ emitULEB128()

void llvm::BufferByteStreamer::emitULEB128 ( uint64_t  DWord,
const Twine Comment,
unsigned  PadTo 

Implements llvm::ByteStreamer.

Definition at line 108 of file ByteStreamer.h.

References llvm::encodeULEB128(), and llvm::Twine::str().

Member Data Documentation

◆ GenerateComments

const bool llvm::BufferByteStreamer::GenerateComments

Only verbose textual output needs comments.

This will be set to true for that case, and false otherwise. If false, comments passed in to the emit methods will be ignored.

Definition at line 85 of file ByteStreamer.h.

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