LLVM 20.0.0git
Public Member Functions | List of all members
llvm::codeview::TypeRecordMapping Class Reference

#include "llvm/DebugInfo/CodeView/TypeRecordMapping.h"

Inheritance diagram for llvm::codeview::TypeRecordMapping:
Inheritance graph
[legend]

Public Member Functions

 TypeRecordMapping (BinaryStreamReader &Reader)
 
 TypeRecordMapping (BinaryStreamWriter &Writer)
 
 TypeRecordMapping (CodeViewRecordStreamer &Streamer)
 
Error visitTypeBegin (CVType &Record) override
 Paired begin/end actions for all types.
 
Error visitTypeBegin (CVType &Record, TypeIndex Index) override
 
Error visitTypeEnd (CVType &Record) override
 
Error visitMemberBegin (CVMemberRecord &Record) override
 
Error visitMemberEnd (CVMemberRecord &Record) override
 
virtual Error visitTypeBegin (CVType &Record)
 Paired begin/end actions for all types.
 
virtual Error visitTypeBegin (CVType &Record, TypeIndex Index)
 
- Public Member Functions inherited from llvm::codeview::TypeVisitorCallbacks
virtual ~TypeVisitorCallbacks ()=default
 
virtual Error visitUnknownType (CVType &Record)
 Action to take on unknown types. By default, they are ignored.
 
virtual Error visitTypeBegin (CVType &Record)
 Paired begin/end actions for all types.
 
virtual Error visitTypeBegin (CVType &Record, TypeIndex Index)
 
virtual Error visitTypeEnd (CVType &Record)
 
virtual Error visitUnknownMember (CVMemberRecord &Record)
 
virtual Error visitMemberBegin (CVMemberRecord &Record)
 
virtual Error visitMemberEnd (CVMemberRecord &Record)
 

Detailed Description

Definition at line 26 of file TypeRecordMapping.h.

Constructor & Destructor Documentation

◆ TypeRecordMapping() [1/3]

llvm::codeview::TypeRecordMapping::TypeRecordMapping ( BinaryStreamReader Reader)
inlineexplicit

Definition at line 28 of file TypeRecordMapping.h.

◆ TypeRecordMapping() [2/3]

llvm::codeview::TypeRecordMapping::TypeRecordMapping ( BinaryStreamWriter Writer)
inlineexplicit

Definition at line 29 of file TypeRecordMapping.h.

◆ TypeRecordMapping() [3/3]

llvm::codeview::TypeRecordMapping::TypeRecordMapping ( CodeViewRecordStreamer Streamer)
inlineexplicit

Definition at line 30 of file TypeRecordMapping.h.

Member Function Documentation

◆ visitMemberBegin()

Error TypeRecordMapping::visitMemberBegin ( CVMemberRecord Record)
overridevirtual

◆ visitMemberEnd()

Error TypeRecordMapping::visitMemberEnd ( CVMemberRecord Record)
overridevirtual

◆ visitTypeBegin() [1/4]

virtual Error llvm::codeview::TypeVisitorCallbacks::visitTypeBegin ( CVType Record)
inlinevirtual

Paired begin/end actions for all types.

Receives all record data, including the fixed-length record prefix. visitTypeBegin() should return the type of the Record, or an error if it cannot be determined. Exactly one of the two visitTypeBegin methods will be called, depending on whether records are being visited sequentially or randomly. An implementation should be prepared to handle both (or assert if it can't handle random access visitation).

Reimplemented from llvm::codeview::TypeVisitorCallbacks.

Definition at line 31 of file TypeVisitorCallbacks.h.

◆ visitTypeBegin() [2/4]

Error TypeRecordMapping::visitTypeBegin ( CVType Record)
overridevirtual

Paired begin/end actions for all types.

Receives all record data, including the fixed-length record prefix. visitTypeBegin() should return the type of the Record, or an error if it cannot be determined. Exactly one of the two visitTypeBegin methods will be called, depending on whether records are being visited sequentially or randomly. An implementation should be prepared to handle both (or assert if it can't handle random access visitation).

Reimplemented from llvm::codeview::TypeVisitorCallbacks.

Definition at line 232 of file TypeRecordMapping.cpp.

References assert(), llvm::codeview::CodeViewRecordIO::beginRecord(), error, llvm::codeview::CodeViewRecordIO::isStreaming(), llvm::codeview::CVRecord< Kind >::kind(), LeafTypeNames, llvm::codeview::CVRecord< Kind >::length(), llvm::codeview::CodeViewRecordIO::mapEnum(), llvm::codeview::CodeViewRecordIO::mapInteger(), llvm::codeview::MaxRecordLength, and llvm::Error::success().

Referenced by llvm::codeview::ContinuationRecordBuilder::begin(), llvm::codeview::SimpleTypeSerializer::serialize(), and visitTypeBegin().

◆ visitTypeBegin() [3/4]

virtual Error llvm::codeview::TypeVisitorCallbacks::visitTypeBegin ( CVType Record,
TypeIndex  Index 
)
inlinevirtual

Reimplemented from llvm::codeview::TypeVisitorCallbacks.

Definition at line 32 of file TypeVisitorCallbacks.h.

◆ visitTypeBegin() [4/4]

Error TypeRecordMapping::visitTypeBegin ( CVType Record,
TypeIndex  Index 
)
overridevirtual

◆ visitTypeEnd()

Error TypeRecordMapping::visitTypeEnd ( CVType Record)
overridevirtual

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