LLVM  5.0.0
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:
[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 MCSymbol * getCrossSectionRelativeBaseAddress () const
 
MCSection * getSection () 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
 
DIE & getUnitDie ()
 
const DIE & getUnitDie () 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

llvm::DIEUnit::~DIEUnit ( )
protecteddefault

The size in bytes of an address for this unit.

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

Definition at line 315 of file DIE.cpp.

References assert().

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

Member Function Documentation

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

Definition at line 833 of file DIE.h.

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

Definition at line 820 of file DIE.h.

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

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

Definition at line 829 of file DIE.h.

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

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

Definition at line 832 of file DIE.h.

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

Definition at line 831 of file DIE.h.

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.

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

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

Definition at line 835 of file DIE.h.

void llvm::DIEUnit::operator= ( const DIEUnit &  RHS)
delete
void llvm::DIEUnit::operator= ( const DIEUnit &&  RHS)
delete
void llvm::DIEUnit::setDebugSectionOffset ( unsigned  O)
inline

Definition at line 828 of file DIE.h.

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

Definition at line 830 of file DIE.h.

References L.

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().


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