Go to the documentation of this file.
23 int PaddingBytes = 4 -
Align;
24 while (PaddingBytes > 0) {
25 uint8_t Pad =
static_cast<uint8_t
>(LF_PAD0 + PaddingBytes);
57 return {ScratchBuffer.data(),
static_cast<size_t>(Writer.
getOffset())};
62 #define TYPE_RECORD(EnumName, EnumVal, Name) \
63 template ArrayRef<uint8_t> llvm::codeview::SimpleTypeSerializer::serialize( \
64 Name##Record &Record);
65 #define TYPE_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName)
66 #define MEMBER_RECORD(EnumName, EnumVal, Name)
67 #define MEMBER_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName)
68 #include "llvm/DebugInfo/CodeView/CodeViewTypes.def"
static void addPadding(BinaryStreamWriter &Writer)
This is an optimization pass for GlobalISel generic memory operations.
Error writeInteger(T Value)
Write the integer Value to the underlying stream in the specified endianness.
Provides write only access to a subclass of WritableBinaryStream.
Error visitTypeEnd(CVType &Record) override
This struct is a compact representation of a valid (non-zero power of two) alignment.
Error visitTypeBegin(CVType &Record) override
Paired begin/end actions for all types.
uint64_t getOffset() const
Error writeObject(const T &Obj)
Writes the object Obj to the underlying stream, as if by using memcpy.
void cantFail(Error Err, const char *Msg=nullptr)
Report a fatal error if Err is a failure value.
ArrayRef< uint8_t > serialize(T &Record)