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

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

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

Public Member Functions

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 18 of file TypeVisitorCallbacks.h.

Constructor & Destructor Documentation

◆ ~TypeVisitorCallbacks()

virtual llvm::codeview::TypeVisitorCallbacks::~TypeVisitorCallbacks ( )
virtualdefault

Member Function Documentation

◆ visitMemberBegin()

virtual Error llvm::codeview::TypeVisitorCallbacks::visitMemberBegin ( CVMemberRecord Record)
inlinevirtual

◆ visitMemberEnd()

virtual Error llvm::codeview::TypeVisitorCallbacks::visitMemberEnd ( CVMemberRecord Record)
inlinevirtual

◆ visitTypeBegin() [1/2]

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 in llvm::codeview::TypeRecordMapping, llvm::codeview::TypeDeserializer, llvm::codeview::TypeDumpVisitor, llvm::codeview::TypeRecordMapping, llvm::codeview::TypeVisitorCallbackPipeline, and llvm::logicalview::LVTypeVisitor.

Definition at line 31 of file TypeVisitorCallbacks.h.

References llvm::Error::success().

◆ visitTypeBegin() [2/2]

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

◆ visitTypeEnd()

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

◆ visitUnknownMember()

virtual Error llvm::codeview::TypeVisitorCallbacks::visitUnknownMember ( CVMemberRecord Record)
inlinevirtual

◆ visitUnknownType()

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

Action to take on unknown types. By default, they are ignored.

Reimplemented in llvm::codeview::TypeDumpVisitor, and llvm::logicalview::LVTypeVisitor.

Definition at line 23 of file TypeVisitorCallbacks.h.

References llvm::Error::success().


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