LLVM  15.0.0git
Public Member Functions | List of all members
llvm::codeview::GlobalTypeTableBuilder Class Reference

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

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

Public Member Functions

 GlobalTypeTableBuilder (BumpPtrAllocator &Storage)
 ~GlobalTypeTableBuilder ()
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
ArrayRef< GloballyHashedTypehashes () const
template<typename CreateFunc >
TypeIndex insertRecordAs (GloballyHashedType Hash, size_t RecordSize, CreateFunc Create)
TypeIndex insertRecordBytes (ArrayRef< uint8_t > Data)
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 29 of file GlobalTypeTableBuilder.h.

Constructor & Destructor Documentation

◆ GlobalTypeTableBuilder()

GlobalTypeTableBuilder::GlobalTypeTableBuilder ( BumpPtrAllocator Storage)

Definition at line 28 of file GlobalTypeTableBuilder.cpp.

◆ ~GlobalTypeTableBuilder()

GlobalTypeTableBuilder::~GlobalTypeTableBuilder ( )

Member Function Documentation

◆ capacity()

uint32_t GlobalTypeTableBuilder::capacity ( )

Implements llvm::codeview::TypeCollection.

Definition at line 66 of file GlobalTypeTableBuilder.cpp.

◆ contains()

bool GlobalTypeTableBuilder::contains ( TypeIndex  Index)

Implements llvm::codeview::TypeCollection.

Definition at line 57 of file GlobalTypeTableBuilder.cpp.

◆ getAllocator()

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

Definition at line 65 of file GlobalTypeTableBuilder.h.

◆ getFirst()

Optional< TypeIndex > GlobalTypeTableBuilder::getFirst ( )

◆ getNext()

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

Implements llvm::codeview::TypeCollection.

Definition at line 42 of file GlobalTypeTableBuilder.cpp.

References nextTypeIndex(), and llvm::None.

◆ getType()

CVType GlobalTypeTableBuilder::getType ( TypeIndex  Index)

Implements llvm::codeview::TypeCollection.

Definition at line 48 of file GlobalTypeTableBuilder.cpp.

◆ getTypeName()

StringRef GlobalTypeTableBuilder::getTypeName ( TypeIndex  Index)

Implements llvm::codeview::TypeCollection.

Definition at line 53 of file GlobalTypeTableBuilder.cpp.

References llvm_unreachable.

◆ hashes()

ArrayRef< GloballyHashedType > GlobalTypeTableBuilder::hashes ( ) const

Definition at line 72 of file GlobalTypeTableBuilder.cpp.

◆ insertRecord()

TypeIndex GlobalTypeTableBuilder::insertRecord ( ContinuationRecordBuilder Builder)

Definition at line 100 of file GlobalTypeTableBuilder.cpp.

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

◆ insertRecordAs()

template<typename CreateFunc >
TypeIndex llvm::codeview::GlobalTypeTableBuilder::insertRecordAs ( GloballyHashedType  Hash,
size_t  RecordSize,
CreateFunc  Create 

◆ insertRecordBytes()

TypeIndex GlobalTypeTableBuilder::insertRecordBytes ( ArrayRef< uint8_t >  Data)

◆ nextTypeIndex()

TypeIndex GlobalTypeTableBuilder::nextTypeIndex ( ) const

◆ records()

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

Definition at line 68 of file GlobalTypeTableBuilder.cpp.

◆ replaceType()

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

◆ reset()

void GlobalTypeTableBuilder::reset ( )

Definition at line 76 of file GlobalTypeTableBuilder.cpp.

◆ size()

uint32_t GlobalTypeTableBuilder::size ( )

Implements llvm::codeview::TypeCollection.

Definition at line 64 of file GlobalTypeTableBuilder.cpp.

◆ writeLeafType()

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

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