LLVM  6.0.0svn
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 (uint16_t Version, uint8_t AddrSize, 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 (unsigned O)
 
unsigned getDebugSectionOffset () const
 
void setLength (uint64_t L)
 
uint64_t getLength () const
 
uint16_t getDwarfVersion () const
 
uint16_t getAddressSize () const
 
DIEgetUnitDie ()
 
const DIEgetUnitDie () const
 

Protected Member Functions

 ~DIEUnit ()=default
 The size in bytes of an address for this unit. More...
 

Detailed Description

Represents a compile or type unit.

Definition at line 788 of file DIE.h.

Constructor & Destructor Documentation

◆ ~DIEUnit()

llvm::DIEUnit::~DIEUnit ( )
protecteddefault

The size in bytes of an address for this unit.

◆ DIEUnit() [1/3]

DIEUnit::DIEUnit ( uint16_t  Version,
uint8_t  AddrSize,
dwarf::Tag  UnitTag 
)

Definition at line 315 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

◆ getAddressSize()

uint16_t llvm::DIEUnit::getAddressSize ( ) const
inline

Definition at line 833 of file DIE.h.

◆ getCrossSectionRelativeBaseAddress()

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

Definition at line 820 of file DIE.h.

◆ getDebugSectionOffset()

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

Definition at line 829 of file DIE.h.

Referenced by llvm::DIE::getDebugSectionOffset().

◆ getDwarfVersion()

uint16_t llvm::DIEUnit::getDwarfVersion ( ) const
inline

Definition at line 832 of file DIE.h.

References llvm::IndexedInstrProf::Version.

◆ getLength()

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

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

References llvm::ARMBuildAttrs::Section.

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

◆ getUnitDie() [1/2]

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

◆ getUnitDie() [2/2]

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

Definition at line 835 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 ( unsigned  O)
inline

Definition at line 828 of file DIE.h.

References llvm::RISCVFenceField::O.

◆ setLength()

void llvm::DIEUnit::setLength ( uint64_t  L)
inline

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

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


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