LLVM  7.0.0svn
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
[legend]
Collaboration diagram for llvm::codeview::GlobalTypeTableBuilder:
Collaboration graph
[legend]

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
 
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 32 of file GlobalTypeTableBuilder.h.

Constructor & Destructor Documentation

◆ GlobalTypeTableBuilder()

GlobalTypeTableBuilder::GlobalTypeTableBuilder ( BumpPtrAllocator Storage)
explicit

Definition at line 35 of file GlobalTypeTableBuilder.cpp.

References ~GlobalTypeTableBuilder().

◆ ~GlobalTypeTableBuilder()

GlobalTypeTableBuilder::~GlobalTypeTableBuilder ( )
default

Referenced by GlobalTypeTableBuilder().

Member Function Documentation

◆ capacity()

uint32_t GlobalTypeTableBuilder::capacity ( )
overridevirtual

Implements llvm::codeview::TypeCollection.

Definition at line 80 of file GlobalTypeTableBuilder.cpp.

◆ contains()

bool GlobalTypeTableBuilder::contains ( TypeIndex  Index)
overridevirtual

◆ getAllocator()

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

Definition at line 67 of file GlobalTypeTableBuilder.h.

References hashes(), and records().

◆ getFirst()

Optional< TypeIndex > GlobalTypeTableBuilder::getFirst ( )
overridevirtual

◆ getNext()

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

Implements llvm::codeview::TypeCollection.

Definition at line 49 of file GlobalTypeTableBuilder.cpp.

References nextTypeIndex(), and llvm::codeview::None.

◆ getType()

CVType GlobalTypeTableBuilder::getType ( TypeIndex  Index)
overridevirtual

◆ getTypeName()

StringRef GlobalTypeTableBuilder::getTypeName ( TypeIndex  Index)
overridevirtual

Implements llvm::codeview::TypeCollection.

Definition at line 67 of file GlobalTypeTableBuilder.cpp.

References llvm_unreachable.

◆ hashes()

ArrayRef< GloballyHashedType > GlobalTypeTableBuilder::hashes ( ) const

Definition at line 86 of file GlobalTypeTableBuilder.cpp.

Referenced by getAllocator().

◆ insertRecord()

TypeIndex GlobalTypeTableBuilder::insertRecord ( ContinuationRecordBuilder Builder)

◆ insertRecordAs()

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

◆ insertRecordBytes()

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

◆ nextTypeIndex()

TypeIndex GlobalTypeTableBuilder::nextTypeIndex ( ) const

◆ records()

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

Definition at line 82 of file GlobalTypeTableBuilder.cpp.

Referenced by getAllocator().

◆ reset()

void GlobalTypeTableBuilder::reset ( )

Definition at line 90 of file GlobalTypeTableBuilder.cpp.

◆ size()

uint32_t GlobalTypeTableBuilder::size ( )
overridevirtual

Implements llvm::codeview::TypeCollection.

Definition at line 78 of file GlobalTypeTableBuilder.cpp.

◆ writeLeafType()

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

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