LLVM  16.0.0git
Public Member Functions | List of all members
llvm::codeview::MergingTypeTableBuilder Class Reference

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

Inheritance diagram for llvm::codeview::MergingTypeTableBuilder:
Inheritance graph
Collaboration diagram for llvm::codeview::MergingTypeTableBuilder:
Collaboration graph

Public Member Functions

 MergingTypeTableBuilder (BumpPtrAllocator &Storage)
 ~MergingTypeTableBuilder ()
Optional< TypeIndexgetFirst () override
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 insertRecordAs (hash_code Hash, ArrayRef< uint8_t > &Record)
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 28 of file MergingTypeTableBuilder.h.

Constructor & Destructor Documentation

◆ MergingTypeTableBuilder()

MergingTypeTableBuilder::MergingTypeTableBuilder ( BumpPtrAllocator Storage)

Definition at line 29 of file MergingTypeTableBuilder.cpp.

◆ ~MergingTypeTableBuilder()

MergingTypeTableBuilder::~MergingTypeTableBuilder ( )

Member Function Documentation

◆ capacity()

uint32_t MergingTypeTableBuilder::capacity ( )

Implements llvm::codeview::TypeCollection.

Definition at line 67 of file MergingTypeTableBuilder.cpp.

◆ contains()

bool MergingTypeTableBuilder::contains ( TypeIndex  Index)

Implements llvm::codeview::TypeCollection.

Definition at line 58 of file MergingTypeTableBuilder.cpp.

◆ getAllocator()

BumpPtrAllocator& llvm::codeview::MergingTypeTableBuilder::getAllocator ( )

Definition at line 61 of file MergingTypeTableBuilder.h.

◆ getFirst()

Optional< TypeIndex > MergingTypeTableBuilder::getFirst ( )

◆ getNext()

Optional< TypeIndex > MergingTypeTableBuilder::getNext ( TypeIndex  Prev)

Implements llvm::codeview::TypeCollection.

Definition at line 43 of file MergingTypeTableBuilder.cpp.

References nextTypeIndex().

◆ getType()

CVType MergingTypeTableBuilder::getType ( TypeIndex  Index)

Implements llvm::codeview::TypeCollection.

Definition at line 49 of file MergingTypeTableBuilder.cpp.

◆ getTypeName()

StringRef MergingTypeTableBuilder::getTypeName ( TypeIndex  Index)

Implements llvm::codeview::TypeCollection.

Definition at line 54 of file MergingTypeTableBuilder.cpp.

References llvm_unreachable.

◆ insertRecord()

TypeIndex MergingTypeTableBuilder::insertRecord ( ContinuationRecordBuilder Builder)

Definition at line 113 of file MergingTypeTableBuilder.cpp.

References assert(), Builder, insertRecordBytes(), and nextTypeIndex().

◆ insertRecordAs()

TypeIndex MergingTypeTableBuilder::insertRecordAs ( hash_code  Hash,
ArrayRef< uint8_t > &  Record 

◆ insertRecordBytes()

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

Definition at line 108 of file MergingTypeTableBuilder.cpp.

References llvm::hash_value(), and insertRecordAs().

Referenced by insertRecord(), and writeLeafType().

◆ nextTypeIndex()

TypeIndex MergingTypeTableBuilder::nextTypeIndex ( ) const

◆ records()

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

Definition at line 69 of file MergingTypeTableBuilder.cpp.

◆ replaceType()

bool MergingTypeTableBuilder::replaceType ( TypeIndex Index,
CVType  Data,
bool  Stabilize 

◆ reset()

void MergingTypeTableBuilder::reset ( )

Definition at line 73 of file MergingTypeTableBuilder.cpp.

◆ size()

uint32_t MergingTypeTableBuilder::size ( )

Implements llvm::codeview::TypeCollection.

Definition at line 65 of file MergingTypeTableBuilder.cpp.

◆ writeLeafType()

template<typename T >
TypeIndex llvm::codeview::MergingTypeTableBuilder::writeLeafType ( T Record)

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