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
- public DIEUnit(dwarf::Tag UnitTag)
- public DIEUnit(const llvm::DIEUnit & RHS)
- public DIEUnit(llvm::DIEUnit && RHS)
- public virtual const llvm::MCSymbol * getCrossSectionRelativeBaseAddress() const
- public uint64_t getDebugSectionOffset() const
- public llvm::MCSection * getSection() const
- public llvm::DIE & getUnitDie()
- public const llvm::DIE & getUnitDie() const
- public void setDebugSectionOffset(uint64_t O)
- public void setSection(llvm::MCSection * Section)
- protected virtual ~DIEUnit()
Methods
¶DIEUnit(dwarf::Tag UnitTag)
DIEUnit(dwarf::Tag UnitTag)
Declared at: llvm/include/llvm/CodeGen/DIE.h:895
Parameters
- dwarf::Tag UnitTag
¶DIEUnit(const llvm::DIEUnit& RHS)
DIEUnit(const llvm::DIEUnit& RHS)
Declared at: llvm/include/llvm/CodeGen/DIE.h:896
Parameters
- const llvm::DIEUnit& RHS
¶DIEUnit(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
virtual const llvm::MCSymbol*
getCrossSectionRelativeBaseAddress() const
Declared at: llvm/include/llvm/CodeGen/DIE.h:909
¶uint64_t getDebugSectionOffset() const
uint64_t getDebugSectionOffset() const
Declared at: llvm/include/llvm/CodeGen/DIE.h:918
¶llvm::MCSection* getSection() const
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()
llvm::DIE& getUnitDie()
Declared at: llvm/include/llvm/CodeGen/DIE.h:919
¶const llvm::DIE& getUnitDie() const
const llvm::DIE& getUnitDie() const
Declared at: llvm/include/llvm/CodeGen/DIE.h:920
¶void setDebugSectionOffset(uint64_t O)
void setDebugSectionOffset(uint64_t O)
Declared at: llvm/include/llvm/CodeGen/DIE.h:917
Parameters
- uint64_t O
¶void setSection(llvm::MCSection* Section)
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()
virtual ~DIEUnit()
Description
.debug_info or .debug_types absolute section offset.
Declared at: llvm/include/llvm/CodeGen/DIE.h:892