LLVM  4.0.0
Public Member Functions | List of all members
llvm::codeview::TypeDatabase Class Reference

#include <TypeDatabase.h>

Public Member Functions

 TypeDatabase ()
 
TypeIndex getNextTypeIndex () const
 Gets the type index for the next type record. More...
 
void recordType (StringRef Name, CVType Data)
 Records the name of a type, and reserves its type index. More...
 
StringRef saveTypeName (StringRef TypeName)
 Saves the name in a StringSet and creates a stable StringRef. More...
 
StringRef getTypeName (TypeIndex Index) const
 
bool containsTypeIndex (TypeIndex Index) const
 
uint32_t size () const
 

Detailed Description

Definition at line 22 of file TypeDatabase.h.

Constructor & Destructor Documentation

llvm::codeview::TypeDatabase::TypeDatabase ( )
inline

Definition at line 24 of file TypeDatabase.h.

Member Function Documentation

bool TypeDatabase::containsTypeIndex ( TypeIndex  Index) const
TypeIndex TypeDatabase::getNextTypeIndex ( ) const

Gets the type index for the next type record.

Definition at line 69 of file TypeDatabase.cpp.

References llvm::codeview::TypeIndex::FirstNonSimpleIndex.

Referenced by llvm::codeview::TypeDumpVisitor::visitTypeBegin().

StringRef TypeDatabase::getTypeName ( TypeIndex  Index) const
void TypeDatabase::recordType ( StringRef  Name,
CVType  Data 
)

Records the name of a type, and reserves its type index.

Definition at line 74 of file TypeDatabase.cpp.

Referenced by llvm::codeview::TypeDatabaseVisitor::visitTypeEnd().

StringRef TypeDatabase::saveTypeName ( StringRef  TypeName)

Saves the name in a StringSet and creates a stable StringRef.

Definition at line 80 of file TypeDatabase.cpp.

References llvm::StringSaver::save().

uint32_t TypeDatabase::size ( ) const

Definition at line 114 of file TypeDatabase.cpp.


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