class DebugSubsectionRecordBuilder

Declaration

class DebugSubsectionRecordBuilder { /* full declaration omitted */ };

Declared at: llvm/include/llvm/DebugInfo/CodeView/DebugSubsectionRecord.h:51

Member Variables

private std::shared_ptr<DebugSubsection> Subsection
The subsection to build. Will be null if Contents is non-empty.
private llvm::codeview::DebugSubsectionRecord Contents
The bytes of the subsection. Only non-empty if Subsection is null. FIXME: Reduce the size of this.

Method Overview

Methods

DebugSubsectionRecordBuilder(
    std::shared_ptr<DebugSubsection> Subsection)

Declared at: llvm/include/llvm/DebugInfo/CodeView/DebugSubsectionRecord.h:53

Parameters

std::shared_ptr<DebugSubsection> Subsection

DebugSubsectionRecordBuilder(
    const llvm::codeview::DebugSubsectionRecord&
        Contents)

Description

Use this to copy existing subsections directly from source to destination. For example, line table subsections in an object file only need to be relocated before being copied into the PDB.

Declared at: llvm/include/llvm/DebugInfo/CodeView/DebugSubsectionRecord.h:58

Parameters

const llvm::codeview::DebugSubsectionRecord& Contents

uint32_t calculateSerializedLength() const

Declared at: llvm/include/llvm/DebugInfo/CodeView/DebugSubsectionRecord.h:60

llvm::Error commit(
    llvm::BinaryStreamWriter& Writer,
    llvm::codeview::CodeViewContainer Container)
    const

Declared at: llvm/include/llvm/DebugInfo/CodeView/DebugSubsectionRecord.h:61

Parameters

llvm::BinaryStreamWriter& Writer
llvm::codeview::CodeViewContainer Container