class DIEUnit

Declaration

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

Description

Represents a compile or type unit.

Declared at: llvm/include/llvm/CodeGen/DIE.h:880

Member Variables

private llvm::DIE Die
The compile unit or type unit DIE. This variable must be an instance of DIE so that we can calculate the DIEUnit from any DIE by traversing the parent backchain and getting the Unit DIE, and then casting itself to a DIEUnit. This allows us to be able to find the DIEUnit for any DIE without having to store a pointer to the DIEUnit in each DIE instance.
private llvm::MCSection* Section = nullptr
The section this unit will be emitted in. This may or may not be set to a valid section depending on the client that is emitting DWARF.
private uint64_t Offset = 0

Method Overview

Methods

DIEUnit(dwarf::Tag UnitTag)

Declared at: llvm/include/llvm/CodeGen/DIE.h:895

Parameters

dwarf::Tag UnitTag

DIEUnit(const llvm::DIEUnit& RHS)

Declared at: llvm/include/llvm/CodeGen/DIE.h:896

Parameters

const llvm::DIEUnit& RHS

DIEUnit(llvm::DIEUnit&& RHS)

Declared at: llvm/include/llvm/CodeGen/DIE.h:897

Parameters

llvm::DIEUnit&& RHS

virtual const llvm::MCSymbol*
getCrossSectionRelativeBaseAddress() const

Declared at: llvm/include/llvm/CodeGen/DIE.h:909

uint64_t getDebugSectionOffset() const

Declared at: llvm/include/llvm/CodeGen/DIE.h:918

llvm::MCSection* getSection() const

Description

Return the section that this DIEUnit will be emitted into.

Declared at: llvm/include/llvm/CodeGen/DIE.h:916

Returns

Section pointer which can be NULL.

llvm::DIE& getUnitDie()

Declared at: llvm/include/llvm/CodeGen/DIE.h:919

const llvm::DIE& getUnitDie() const

Declared at: llvm/include/llvm/CodeGen/DIE.h:920

void setDebugSectionOffset(uint64_t O)

Declared at: llvm/include/llvm/CodeGen/DIE.h:917

Parameters

uint64_t O

void setSection(llvm::MCSection* Section)

Description

Set the section that this DIEUnit will be emitted into. This function is used by some clients to set the section. Not all clients that emit DWARF use this section variable.

Declared at: llvm/include/llvm/CodeGen/DIE.h:904

Parameters

llvm::MCSection* Section

virtual ~DIEUnit()

Description

.debug_info or .debug_types absolute section offset.

Declared at: llvm/include/llvm/CodeGen/DIE.h:892