15 #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_BYTESTREAMER_H 16 #define LLVM_LIB_CODEGEN_ASMPRINTER_BYTESTREAMER_H 33 virtual void EmitInt8(uint8_t Byte,
const Twine &Comment =
"") = 0;
82 bool GenerateComments;
87 bool GenerateComments)
88 : Buffer(Buffer), Comments(Comments), GenerateComments(GenerateComments) {}
97 if (GenerateComments) {
101 for (
size_t i = 1; i < Length; ++i)
109 if (GenerateComments) {
113 for (
size_t i = 1; i < Length; ++i)
An object containing the capability of hashing and adding hash attributes onto a DIE.
std::unique_ptr< MCStreamer > OutStreamer
This is the MCStreamer object for the file we are generating.
This class represents lattice values for constants.
void EmitSLEB128(uint64_t DWord, const Twine &Comment) override
void EmitInt8(uint8_t Byte, const Twine &Comment) override
void push_back(const T &Elt)
void addULEB128(uint64_t Value)
Encodes and adds.
A raw_ostream that writes to an SmallVector or SmallString.
void EmitInt8(uint8_t Byte, const Twine &Comment) override
BufferByteStreamer(SmallVectorImpl< char > &Buffer, SmallVectorImpl< std::string > &Comments, bool GenerateComments)
virtual void EmitULEB128(uint64_t DWord, const Twine &Comment="")=0
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
void EmitULEB128(uint64_t DWord, const Twine &Comment) override
virtual void EmitInt8(uint8_t Byte, const Twine &Comment="")=0
void EmitSLEB128(uint64_t DWord, const Twine &Comment) override
void EmitSLEB128(uint64_t DWord, const Twine &Comment) override
HashingByteStreamer(DIEHash &H)
This class is intended to be used as a driving class for all asm writers.
void EmitSLEB128(int64_t Value, const char *Desc=nullptr) const
Emit the specified signed leb128 value.
unsigned encodeULEB128(uint64_t Value, raw_ostream &OS, unsigned PadTo=0)
Utility function to encode a ULEB128 value to an output stream.
unsigned encodeSLEB128(int64_t Value, raw_ostream &OS, unsigned PadTo=0)
Utility function to encode a SLEB128 value to an output stream.
virtual void EmitSLEB128(uint64_t DWord, const Twine &Comment="")=0
void update(uint8_t Value)
Adds.
void EmitInt8(uint8_t Byte, const Twine &Comment) override
void addSLEB128(int64_t Value)
Encodes and adds.
std::string str() const
Return the twine contents as a std::string.
void emitInt8(int Value) const
Emit a byte directive and value.
void EmitULEB128(uint64_t Value, const char *Desc=nullptr) const
Emit the specified unsigned leb128 value.
APByteStreamer(AsmPrinter &Asm)
void EmitULEB128(uint64_t DWord, const Twine &Comment) override
void EmitULEB128(uint64_t DWord, const Twine &Comment) override