23 int PaddingBytes = 4 -
Align;
24 while (PaddingBytes > 0) {
54 Prefix->RecordKind = CVT.
kind();
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)
static void addPadding(BinaryStreamWriter &Writer)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Provides write only access to a subclass of WritableBinaryStream.
uint64_t getOffset() const
Error writeInteger(T Value)
Write the integer Value to the underlying stream in the specified endianness.
Error writeObject(const T &Obj)
Writes the object Obj to the underlying stream, as if by using memcpy.
ArrayRef< uint8_t > serialize(T &Record)
Error visitTypeBegin(CVType &Record) override
Paired begin/end actions for all types.
Error visitTypeEnd(CVType &Record) override
This is an optimization pass for GlobalISel generic memory operations.
void cantFail(Error Err, const char *Msg=nullptr)
Report a fatal error if Err is a failure value.
This struct is a compact representation of a valid (non-zero power of two) alignment.