ΒΆllvm::Error mergeTypeAndIdRecords(
    llvm::codeview::MergingTypeTableBuilder&
        DestIds,
    llvm::codeview::MergingTypeTableBuilder&
        DestTypes,
    SmallVectorImpl<llvm::codeview::TypeIndex>&
        SourceToDest,
    const llvm::codeview::CVTypeArray&
        IdsAndTypes,
    Optional<uint32_t>& PCHSignature)

Description

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

Declared at: llvm/include/llvm/DebugInfo/CodeView/TypeStreamMerger.h:83

Parameters

llvm::codeview::MergingTypeTableBuilder& DestIds
The table to store the re-written id records into.
llvm::codeview::MergingTypeTableBuilder& DestTypes
the table to store the re-written type records into.
SmallVectorImpl<llvm::codeview::TypeIndex>& SourceToDest
A vector, indexed by the TypeIndex in the source id stream, that contains the index of the corresponding id record in the destination stream.
const llvm::codeview::CVTypeArray& IdsAndTypes
The collection of id records to merge in.
Optional<uint32_t>& PCHSignature

Returns

Error::success() if the operation succeeded, otherwise an appropriate error code.