LLVM 20.0.0git
Public Member Functions | Protected Member Functions | List of all members
llvm::DIEUnit Class Reference

Represents a compile or type unit. More...

#include "llvm/CodeGen/DIE.h"

Inheritance diagram for llvm::DIEUnit:
Inheritance graph
[legend]

Public Member Functions

 DIEUnit (dwarf::Tag UnitTag)
 
 DIEUnit (const DIEUnit &RHS)=delete
 
 DIEUnit (DIEUnit &&RHS)=delete
 
void operator= (const DIEUnit &RHS)=delete
 
void operator= (const DIEUnit &&RHS)=delete
 
void setSection (MCSection *Section)
 Set the section that this DIEUnit will be emitted into.
 
virtual const MCSymbolgetCrossSectionRelativeBaseAddress () const
 
MCSectiongetSection () const
 Return the section that this DIEUnit will be emitted into.
 
void setDebugSectionOffset (uint64_t O)
 
uint64_t getDebugSectionOffset () const
 
DIEgetUnitDie ()
 
const DIEgetUnitDie () const
 

Protected Member Functions

virtual ~DIEUnit ()=default
 .debug_info or .debug_types absolute section offset.
 

Detailed Description

Represents a compile or type unit.

Definition at line 960 of file DIE.h.

Constructor & Destructor Documentation

◆ ~DIEUnit()

virtual llvm::DIEUnit::~DIEUnit ( )
protectedvirtualdefault

.debug_info or .debug_types absolute section offset.

◆ DIEUnit() [1/3]

DIEUnit::DIEUnit ( dwarf::Tag  UnitTag)
explicit

Definition at line 306 of file DIE.cpp.

References assert().

◆ DIEUnit() [2/3]

llvm::DIEUnit::DIEUnit ( const DIEUnit RHS)
delete

◆ DIEUnit() [3/3]

llvm::DIEUnit::DIEUnit ( DIEUnit &&  RHS)
delete

Member Function Documentation

◆ getCrossSectionRelativeBaseAddress()

virtual const MCSymbol * llvm::DIEUnit::getCrossSectionRelativeBaseAddress ( ) const
inlinevirtual

Definition at line 989 of file DIE.h.

Referenced by llvm::DIEEntry::emitValue().

◆ getDebugSectionOffset()

uint64_t llvm::DIEUnit::getDebugSectionOffset ( ) const
inline

Definition at line 998 of file DIE.h.

◆ getSection()

MCSection * llvm::DIEUnit::getSection ( ) const
inline

Return the section that this DIEUnit will be emitted into.

Returns
Section pointer which can be NULL.

Definition at line 996 of file DIE.h.

Referenced by llvm::DwarfFile::emitUnit().

◆ getUnitDie() [1/2]

DIE & llvm::DIEUnit::getUnitDie ( )
inline

◆ getUnitDie() [2/2]

const DIE & llvm::DIEUnit::getUnitDie ( ) const
inline

Definition at line 1000 of file DIE.h.

◆ operator=() [1/2]

void llvm::DIEUnit::operator= ( const DIEUnit &&  RHS)
delete

◆ operator=() [2/2]

void llvm::DIEUnit::operator= ( const DIEUnit RHS)
delete

◆ setDebugSectionOffset()

void llvm::DIEUnit::setDebugSectionOffset ( uint64_t  O)
inline

Definition at line 997 of file DIE.h.

◆ setSection()

void llvm::DIEUnit::setSection ( MCSection Section)
inline

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.

Definition at line 984 of file DIE.h.

References assert().

Referenced by llvm::DwarfDebug::addDwarfTypeUnitType().


The documentation for this class was generated from the following files: