Provides read access to the PDB Type Info (TPI) stream.

Synopsis

Declared in <llvm/DebugInfo/PDB/Native/TpiStream.h>

class TpiStream;

Member Functions

Name

Description

TpiStream [constructor]

Construct a TPI stream reader over Stream from File.

~TpiStream [destructor]

Destroy the TPI stream reader.

TypeIndexBegin

Return the first type index covered by this TPI stream.

TypeIndexEnd

Return one past the last type index covered by this TPI stream.

buildHashMap

Build the in‐memory hash map used for name and forward‐ref lookups.

commit

Commit any pending writes for this stream.

findFullDeclForForwardRef

Resolve a UDT forward reference to its matching full declaration, if any.

findRecordsByName

Find type records whose rendered name equals Name.

getHashAdjusters

Return the hash adjuster table from the TPI hash stream.

getHashKeySize

Return the hash key size in bytes from the TPI header.

getHashValues

Return the per‐type hash values from the TPI hash stream.

getNumHashBuckets

Return the number of hash buckets from the TPI header.

getNumTypeRecords

Return the number of type records in this TPI stream.

getTpiVersion

Return the TPI stream format version from the header.

getType

Get a type by its index. Index must be a valid type index. Otherwise, this method asserts in Debug mode.

getTypeHashStreamAuxIndex

Return the MSF stream index of the TPI auxiliary hash stream.

getTypeHashStreamIndex

Return the MSF stream index of the TPI hash stream.

getTypeIndexOffsets

Return the type‐index‐to‐offset table from the TPI hash stream.

getTypeOrEmpty

The same as getType() except that the return value is defined (empty/invalid) if Index doesn't exist. Use codeview::CVType::valid() to check the return value.

getTypeOrError

Get the type at Index if it exists or an error about the failure.

getTypeRecordsSubstream

Return a reference to the raw type‐records substream bytes.

reload

Reload and reparse the TPI stream from the underlying MSF stream.

supportsTypeLookup

Return true if the in‐memory type hash map has already been built.

tryGetType

Get the type at Index if it exists or std::nullopt otherwise.

typeArray

Return the array of CodeView type records in this TPI stream.

typeCollection

Return the lazy random type collection built over this stream's records.

types

Iterate the type records in this stream, optionally reporting parse errors.

Friends

Name

Description

llvm::pdb::TpiStreamBuilder

Builds the PDB Type Information (TPI) or ID Information (IPI) stream.

Created with MrDocs