LLVM 22.0.0git
llvm::codeview::AppendingTypeTableBuilder Class Reference

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

Inheritance diagram for llvm::codeview::AppendingTypeTableBuilder:
[legend]

Public Member Functions

 AppendingTypeTableBuilder (BumpPtrAllocator &Storage)
 ~AppendingTypeTableBuilder ()
std::optional< TypeIndexgetFirst () override
std::optional< TypeIndexgetNext (TypeIndex Prev) override
CVType getType (TypeIndex Index) override
StringRef getTypeName (TypeIndex Index) override
bool contains (TypeIndex Index) override
uint32_t size () override
uint32_t capacity () override
bool replaceType (TypeIndex &Index, CVType Data, bool Stabilize) override
void reset ()
TypeIndex nextTypeIndex () const
BumpPtrAllocatorgetAllocator ()
ArrayRef< ArrayRef< uint8_t > > records () const
TypeIndex insertRecordBytes (ArrayRef< uint8_t > &Record)
TypeIndex insertRecord (ContinuationRecordBuilder &Builder)
template<typename T>
TypeIndex writeLeafType (T &Record)
Public Member Functions inherited from llvm::codeview::TypeCollection
virtual ~TypeCollection ()=default
bool empty ()
template<typename TFunc>
void ForEachRecord (TFunc Func)

Detailed Description

Definition at line 27 of file AppendingTypeTableBuilder.h.

Constructor & Destructor Documentation

◆ AppendingTypeTableBuilder()

AppendingTypeTableBuilder::AppendingTypeTableBuilder ( BumpPtrAllocator & Storage)
explicit

Definition at line 26 of file AppendingTypeTableBuilder.cpp.

◆ ~AppendingTypeTableBuilder()

AppendingTypeTableBuilder::~AppendingTypeTableBuilder ( )
default

Member Function Documentation

◆ capacity()

uint32_t AppendingTypeTableBuilder::capacity ( )
overridevirtual

Implements llvm::codeview::TypeCollection.

Definition at line 61 of file AppendingTypeTableBuilder.cpp.

Referenced by ~AppendingTypeTableBuilder().

◆ contains()

bool AppendingTypeTableBuilder::contains ( TypeIndex Index)
overridevirtual

Implements llvm::codeview::TypeCollection.

Definition at line 52 of file AppendingTypeTableBuilder.cpp.

◆ getAllocator()

BumpPtrAllocator & llvm::codeview::AppendingTypeTableBuilder::getAllocator ( )
inline

Definition at line 53 of file AppendingTypeTableBuilder.h.

◆ getFirst()

std::optional< TypeIndex > AppendingTypeTableBuilder::getFirst ( )
overridevirtual

◆ getNext()

std::optional< TypeIndex > AppendingTypeTableBuilder::getNext ( TypeIndex Prev)
overridevirtual

Implements llvm::codeview::TypeCollection.

Definition at line 38 of file AppendingTypeTableBuilder.cpp.

References nextTypeIndex().

Referenced by ~AppendingTypeTableBuilder().

◆ getType()

CVType AppendingTypeTableBuilder::getType ( TypeIndex Index)
overridevirtual

Implements llvm::codeview::TypeCollection.

Definition at line 44 of file AppendingTypeTableBuilder.cpp.

◆ getTypeName()

StringRef AppendingTypeTableBuilder::getTypeName ( TypeIndex Index)
overridevirtual

Implements llvm::codeview::TypeCollection.

Definition at line 48 of file AppendingTypeTableBuilder.cpp.

References llvm_unreachable.

◆ insertRecord()

TypeIndex AppendingTypeTableBuilder::insertRecord ( ContinuationRecordBuilder & Builder)

◆ insertRecordBytes()

TypeIndex AppendingTypeTableBuilder::insertRecordBytes ( ArrayRef< uint8_t > & Record)

Definition at line 77 of file AppendingTypeTableBuilder.cpp.

References nextTypeIndex(), and stabilize().

Referenced by insertRecord(), and writeLeafType().

◆ nextTypeIndex()

TypeIndex AppendingTypeTableBuilder::nextTypeIndex ( ) const

◆ records()

ArrayRef< ArrayRef< uint8_t > > AppendingTypeTableBuilder::records ( ) const

◆ replaceType()

bool AppendingTypeTableBuilder::replaceType ( TypeIndex & Index,
CVType Data,
bool Stabilize )
overridevirtual

Implements llvm::codeview::TypeCollection.

Definition at line 94 of file AppendingTypeTableBuilder.cpp.

References assert(), llvm::Data, and stabilize().

Referenced by ~AppendingTypeTableBuilder().

◆ reset()

void AppendingTypeTableBuilder::reset ( )

Definition at line 67 of file AppendingTypeTableBuilder.cpp.

Referenced by ~AppendingTypeTableBuilder().

◆ size()

uint32_t AppendingTypeTableBuilder::size ( )
overridevirtual

Implements llvm::codeview::TypeCollection.

Definition at line 59 of file AppendingTypeTableBuilder.cpp.

Referenced by ~AppendingTypeTableBuilder().

◆ writeLeafType()

template<typename T>
TypeIndex llvm::codeview::AppendingTypeTableBuilder::writeLeafType ( T & Record)
inline

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