class CodeViewRecordIO
Declaration
class CodeViewRecordIO { /* full declaration omitted */ };
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:45
Member Variables
- private SmallVector< llvm::codeview::CodeViewRecordIO::RecordLimit, 2> Limits
- private llvm::BinaryStreamReader* Reader = nullptr
- private llvm::BinaryStreamWriter* Writer = nullptr
- private llvm::codeview::CodeViewRecordStreamer* Streamer = nullptr
- private uint64_t StreamedLen = 0
Method Overview
- public CodeViewRecordIO(llvm::BinaryStreamReader & Reader)
- public CodeViewRecordIO(llvm::BinaryStreamWriter & Writer)
- public CodeViewRecordIO(llvm::codeview::CodeViewRecordStreamer & Streamer)
- public llvm::Error beginRecord(Optional<uint32_t> MaxLength)
- private void emitComment(const llvm::Twine & Comment)
- private void emitEncodedSignedInteger(const int64_t & Value, const llvm::Twine & Comment = "")
- private void emitEncodedUnsignedInteger(const uint64_t & Value, const llvm::Twine & Comment = "")
- public void emitRawComment(const llvm::Twine & T)
- public llvm::Error endRecord()
- private uint32_t getCurrentOffset() const
- public uint64_t getStreamedLen()
- private void incrStreamedLen(const uint64_t & Len)
- public bool isReading() const
- public bool isStreaming() const
- public bool isWriting() const
- public llvm::Error mapByteVectorTail(std::vector<uint8_t> & Bytes, const llvm::Twine & Comment = "")
- public llvm::Error mapByteVectorTail(ArrayRef<uint8_t> & Bytes, const llvm::Twine & Comment = "")
- public llvm::Error mapEncodedInteger(llvm::APSInt & Value, const llvm::Twine & Comment = "")
- public llvm::Error mapEncodedInteger(uint64_t & Value, const llvm::Twine & Comment = "")
- public llvm::Error mapEncodedInteger(int64_t & Value, const llvm::Twine & Comment = "")
- public template <typename T>llvm::Error mapEnum(T & Value, const llvm::Twine & Comment = "")
- public llvm::Error mapGuid(llvm::codeview::GUID & Guid, const llvm::Twine & Comment = "")
- public template <typename T>llvm::Error mapInteger(T & Value, const llvm::Twine & Comment = "")
- public llvm::Error mapInteger(llvm::codeview::TypeIndex & TypeInd, const llvm::Twine & Comment = "")
- public template <typename T>llvm::Error mapObject(T & Value)
- public llvm::Error mapStringZ(llvm::StringRef & Value, const llvm::Twine & Comment = "")
- public llvm::Error mapStringZVectorZ(std::vector<StringRef> & Value, const llvm::Twine & Comment = "")
- public template <typename SizeType, typename T, typename ElementMapper>llvm::Error mapVectorN(T & Items, const ElementMapper & Mapper, const llvm::Twine & Comment = "")
- public template <typename T, typename ElementMapper>llvm::Error mapVectorTail(T & Items, const ElementMapper & Mapper, const llvm::Twine & Comment = "")
- public uint32_t maxFieldLength() const
- public llvm::Error padToAlignment(uint32_t Align)
- private void resetStreamedLen()
- public llvm::Error skipPadding()
- private llvm::Error writeEncodedSignedInteger(const int64_t & Value)
- private llvm::Error writeEncodedUnsignedInteger(const uint64_t & Value)
Methods
¶CodeViewRecordIO(llvm::BinaryStreamReader& Reader)
CodeViewRecordIO(llvm::BinaryStreamReader& Reader)
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:57
Parameters
- llvm::BinaryStreamReader& Reader
¶CodeViewRecordIO(llvm::BinaryStreamWriter& Writer)
CodeViewRecordIO(llvm::BinaryStreamWriter& Writer)
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:60
Parameters
- llvm::BinaryStreamWriter& Writer
¶CodeViewRecordIO(
llvm::codeview::CodeViewRecordStreamer&
Streamer)
CodeViewRecordIO(
llvm::codeview::CodeViewRecordStreamer&
Streamer)
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:63
Parameters
- llvm::codeview::CodeViewRecordStreamer& Streamer
¶llvm::Error beginRecord(
Optional<uint32_t> MaxLength)
llvm::Error beginRecord(
Optional<uint32_t> MaxLength)
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:66
Parameters
- Optional<uint32_t> MaxLength
¶void emitComment(const llvm::Twine& Comment)
void emitComment(const llvm::Twine& Comment)
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:238
Parameters
- const llvm::Twine& Comment
¶void emitEncodedSignedInteger(
const int64_t& Value,
const llvm::Twine& Comment = "")
void emitEncodedSignedInteger(
const int64_t& Value,
const llvm::Twine& Comment = "")
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:221
Parameters
- const int64_t& Value
- const llvm::Twine& Comment = ""
¶void emitEncodedUnsignedInteger(
const uint64_t& Value,
const llvm::Twine& Comment = "")
void emitEncodedUnsignedInteger(
const uint64_t& Value,
const llvm::Twine& Comment = "")
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:223
Parameters
- const uint64_t& Value
- const llvm::Twine& Comment = ""
¶void emitRawComment(const llvm::Twine& T)
void emitRawComment(const llvm::Twine& T)
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:215
Parameters
- const llvm::Twine& T
¶llvm::Error endRecord()
llvm::Error endRecord()
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:67
¶uint32_t getCurrentOffset() const
uint32_t getCurrentOffset() const
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:46
¶uint64_t getStreamedLen()
uint64_t getStreamedLen()
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:209
¶void incrStreamedLen(const uint64_t& Len)
void incrStreamedLen(const uint64_t& Len)
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:228
Parameters
- const uint64_t& Len
¶bool isReading() const
bool isReading() const
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:74
¶bool isStreaming() const
bool isStreaming() const
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:71
¶bool isWriting() const
bool isWriting() const
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:77
¶llvm::Error mapByteVectorTail(
std::vector<uint8_t>& Bytes,
const llvm::Twine& Comment = "")
llvm::Error mapByteVectorTail(
std::vector<uint8_t>& Bytes,
const llvm::Twine& Comment = "")
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:203
Parameters
- std::vector<uint8_t>& Bytes
- const llvm::Twine& Comment = ""
¶llvm::Error mapByteVectorTail(
ArrayRef<uint8_t>& Bytes,
const llvm::Twine& Comment = "")
llvm::Error mapByteVectorTail(
ArrayRef<uint8_t>& Bytes,
const llvm::Twine& Comment = "")
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:202
Parameters
- ArrayRef<uint8_t>& Bytes
- const llvm::Twine& Comment = ""
¶llvm::Error mapEncodedInteger(
llvm::APSInt& Value,
const llvm::Twine& Comment = "")
llvm::Error mapEncodedInteger(
llvm::APSInt& Value,
const llvm::Twine& Comment = "")
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:137
Parameters
- llvm::APSInt& Value
- const llvm::Twine& Comment = ""
¶llvm::Error mapEncodedInteger(
uint64_t& Value,
const llvm::Twine& Comment = "")
llvm::Error mapEncodedInteger(
uint64_t& Value,
const llvm::Twine& Comment = "")
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:136
Parameters
- uint64_t& Value
- const llvm::Twine& Comment = ""
¶llvm::Error mapEncodedInteger(
int64_t& Value,
const llvm::Twine& Comment = "")
llvm::Error mapEncodedInteger(
int64_t& Value,
const llvm::Twine& Comment = "")
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:135
Parameters
- int64_t& Value
- const llvm::Twine& Comment = ""
¶template <typename T>
llvm::Error mapEnum(
T& Value,
const llvm::Twine& Comment = "")
template <typename T>
llvm::Error mapEnum(
T& Value,
const llvm::Twine& Comment = "")
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:116
Templates
- T
Parameters
- T& Value
- const llvm::Twine& Comment = ""
¶llvm::Error mapGuid(
llvm::codeview::GUID& Guid,
const llvm::Twine& Comment = "")
llvm::Error mapGuid(
llvm::codeview::GUID& Guid,
const llvm::Twine& Comment = "")
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:139
Parameters
- llvm::codeview::GUID& Guid
- const llvm::Twine& Comment = ""
¶template <typename T>
llvm::Error mapInteger(
T& Value,
const llvm::Twine& Comment = "")
template <typename T>
llvm::Error mapInteger(
T& Value,
const llvm::Twine& Comment = "")
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:102
Templates
- T
Parameters
- T& Value
- const llvm::Twine& Comment = ""
¶llvm::Error mapInteger(
llvm::codeview::TypeIndex& TypeInd,
const llvm::Twine& Comment = "")
llvm::Error mapInteger(
llvm::codeview::TypeIndex& TypeInd,
const llvm::Twine& Comment = "")
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:69
Parameters
- llvm::codeview::TypeIndex& TypeInd
- const llvm::Twine& Comment = ""
¶template <typename T>
llvm::Error mapObject(T& Value)
template <typename T>
llvm::Error mapObject(T& Value)
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:83
Templates
- T
Parameters
- T& Value
¶llvm::Error mapStringZ(
llvm::StringRef& Value,
const llvm::Twine& Comment = "")
llvm::Error mapStringZ(
llvm::StringRef& Value,
const llvm::Twine& Comment = "")
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:138
Parameters
- llvm::StringRef& Value
- const llvm::Twine& Comment = ""
¶llvm::Error mapStringZVectorZ(
std::vector<StringRef>& Value,
const llvm::Twine& Comment = "")
llvm::Error mapStringZVectorZ(
std::vector<StringRef>& Value,
const llvm::Twine& Comment = "")
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:141
Parameters
- std::vector<StringRef>& Value
- const llvm::Twine& Comment = ""
¶template <typename SizeType,
typename T,
typename ElementMapper>
llvm::Error mapVectorN(
T& Items,
const ElementMapper& Mapper,
const llvm::Twine& Comment = "")
template <typename SizeType,
typename T,
typename ElementMapper>
llvm::Error mapVectorN(
T& Items,
const ElementMapper& Mapper,
const llvm::Twine& Comment = "")
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:145
Templates
- SizeType
- T
- ElementMapper
Parameters
- T& Items
- const ElementMapper& Mapper
- const llvm::Twine& Comment = ""
¶template <typename T, typename ElementMapper>
llvm::Error mapVectorTail(
T& Items,
const ElementMapper& Mapper,
const llvm::Twine& Comment = "")
template <typename T, typename ElementMapper>
llvm::Error mapVectorTail(
T& Items,
const ElementMapper& Mapper,
const llvm::Twine& Comment = "")
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:182
Templates
- T
- ElementMapper
Parameters
- T& Items
- const ElementMapper& Mapper
- const llvm::Twine& Comment = ""
¶uint32_t maxFieldLength() const
uint32_t maxFieldLength() const
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:81
¶llvm::Error padToAlignment(uint32_t Align)
llvm::Error padToAlignment(uint32_t Align)
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:206
Parameters
- uint32_t Align
¶void resetStreamedLen()
void resetStreamedLen()
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:233
¶llvm::Error skipPadding()
llvm::Error skipPadding()
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:207
¶llvm::Error writeEncodedSignedInteger(
const int64_t& Value)
llvm::Error writeEncodedSignedInteger(
const int64_t& Value)
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:225
Parameters
- const int64_t& Value
¶llvm::Error writeEncodedUnsignedInteger(
const uint64_t& Value)
llvm::Error writeEncodedUnsignedInteger(
const uint64_t& Value)
Declared at: llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h:226
Parameters
- const uint64_t& Value