LLVM  12.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. More...
 
virtual const MCSymbolgetCrossSectionRelativeBaseAddress () const
 
MCSectiongetSection () const
 Return the section that this DIEUnit will be emitted into. More...
 
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. More...
 

Detailed Description

Represents a compile or type unit.

Definition at line 857 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 316 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 886 of file DIE.h.

◆ getDebugSectionOffset()

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

Definition at line 895 of file DIE.h.

Referenced by computeIndexValue(), and llvm::DIE::getDebugSectionOffset().

◆ 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 893 of file DIE.h.

References llvm::ARMBuildAttrs::Section.

Referenced by llvm::DwarfTypeUnit::addGlobalType(), computeIndexValue(), and llvm::DwarfFile::emitUnit().

◆ getUnitDie() [1/2]

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

◆ getUnitDie() [2/2]

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

Definition at line 897 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 894 of file DIE.h.

References llvm::RISCVFenceField::O.

◆ 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 881 of file DIE.h.

References assert(), and llvm::ARMBuildAttrs::Section.

Referenced by emitMacroHeader().


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