Builds a CodeView type table that merges duplicate records by local hash.

Synopsis

Declared in <llvm/DebugInfo/CodeView/MergingTypeTableBuilder.h>

class MergingTypeTableBuilder
    : public TypeCollection

Base Classes

Name

Description

TypeCollection

Interface for a random‐access collection of CodeView type records.

Member Functions

Name

Description

MergingTypeTableBuilder [constructor]

Construct a builder that stores merged records in Storage.

~MergingTypeTableBuilder [destructor] [virtual]

Destroy the merging type table builder.

ForEachRecord

Invoke Func for each type record in the collection, in index order.

capacity [virtual]

Return the number of type records the table can hold without growing.

contains [virtual]

Return true if Index refers to a record stored in this table.

empty

Return true if the collection contains no type records.

getAllocator

Return the allocator used to store stable record bytes.

getFirst [virtual]

Return the first non‐simple type index, or std::nullopt if empty.

getNext [virtual]

Return the type index after Prev, or std::nullopt at the end.

getType [virtual]

Return the CodeView type record at Index.

getTypeName [virtual]

Return the name of the type at Index.

insertRecord

Insert the continuation fragments from Builder, merging each fragment.

insertRecordAs

Insert Record under Hash, merging with an existing duplicate if any.

insertRecordBytes

Insert Record, hashing its bytes and merging duplicates.

nextTypeIndex

Return the type index that will be assigned to the next new unique record.

records

Return the serialized bytes of every unique record in type‐index order.

replaceType [virtual]

Replace the record at Index with Data, merging if a duplicate exists.

reset

Remove all hashed type records from the table.

size [virtual]

Return the number of unique type records currently stored.

writeLeafType

Serialize leaf type Record and insert it, merging duplicates.

Non-Member Functions

Name

Description

computeTypeName

Compute a human‐readable name for the type at Index in Types.

mergeIdRecords

Merge one set of id records into another.

mergeTypeAndIdRecords

Merge a unified set of type and id records, splitting them into separate output streams.

mergeTypeRecords

Merge one set of type records into another. This method assumes that all records are type records, and there are no Id records present.

visitTypeStream

Visit every type record in the collection Types.

Created with MrDocs