LLVM API Documentation

Public Member Functions | Protected Attributes
llvm::DIE Class Reference

#include <DIE.h>

Inheritance diagram for llvm::DIE:
Inheritance graph
[legend]
Collaboration diagram for llvm::DIE:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DIE (unsigned Tag)
virtual ~DIE ()
DIEAbbrevgetAbbrev ()
unsigned getAbbrevNumber () const
unsigned getTag () const
unsigned getOffset () const
unsigned getSize () const
const std::vector< DIE * > & getChildren () const
const SmallVectorImpl
< DIEValue * > & 
getValues () const
DIEgetParent () const
DIEgetCompileUnit ()
void setTag (unsigned Tag)
void setOffset (unsigned O)
void setSize (unsigned S)
void addValue (unsigned Attribute, unsigned Form, DIEValue *Value)
void addChild (DIE *Child)
void print (raw_ostream &O, unsigned IndentCount=0) const
void dump ()

Protected Attributes

unsigned Offset
unsigned Size
DIEAbbrev Abbrev
std::vector< DIE * > Children
DIEParent
SmallVector< DIEValue *, 12 > Values
unsigned IndentCount

Detailed Description

Definition at line 108 of file DIE.h.


Constructor & Destructor Documentation

llvm::DIE::DIE ( unsigned  Tag) [inline, explicit]

Definition at line 137 of file DIE.h.

DIE::~DIE ( ) [virtual]

Definition at line 106 of file DIE.cpp.

References Children, and N.


Member Function Documentation

void llvm::DIE::addChild ( DIE Child) [inline]
void llvm::DIE::addValue ( unsigned  Attribute,
unsigned  Form,
DIEValue Value 
) [inline]
void DIE::dump ( )

Definition at line 169 of file DIE.cpp.

References llvm::dbgs(), and print().

DIEAbbrev& llvm::DIE::getAbbrev ( ) [inline]

Definition at line 142 of file DIE.h.

References Abbrev.

Referenced by llvm::DwarfUnits::computeSizeAndOffset().

unsigned llvm::DIE::getAbbrevNumber ( ) const [inline]
const std::vector<DIE *>& llvm::DIE::getChildren ( ) const [inline]

Definition at line 147 of file DIE.h.

References Children.

Referenced by llvm::DwarfUnits::computeSizeAndOffset(), and llvm::DwarfDebug::emitDIE().

DIE * DIE::getCompileUnit ( )

Climb up the parent chain to get the compile unit DIE this DIE belongs to.

Climb up the parent chain to get the compile unit DIE to which this DIE belongs.

Definition at line 113 of file DIE.cpp.

References llvm::dwarf::DW_TAG_compile_unit, getParent(), getTag(), and llvm_unreachable.

unsigned llvm::DIE::getOffset ( ) const [inline]
DIE* llvm::DIE::getParent ( ) const [inline]

Definition at line 149 of file DIE.h.

References Parent.

Referenced by addChild(), and getCompileUnit().

unsigned llvm::DIE::getSize ( ) const [inline]

Definition at line 146 of file DIE.h.

References Size.

Referenced by llvm::DwarfDebug::emitDIE(), and llvm::DwarfUnits::emitUnits().

unsigned llvm::DIE::getTag ( ) const [inline]
const SmallVectorImpl<DIEValue*>& llvm::DIE::getValues ( ) const [inline]

Definition at line 148 of file DIE.h.

References Values.

Referenced by llvm::DwarfUnits::computeSizeAndOffset(), and llvm::DwarfDebug::emitDIE().

void DIE::print ( raw_ostream O,
unsigned  IndentCount = 0 
) const
void llvm::DIE::setOffset ( unsigned  O) [inline]

Definition at line 154 of file DIE.h.

References Offset.

Referenced by llvm::DwarfUnits::computeSizeAndOffset().

void llvm::DIE::setSize ( unsigned  S) [inline]

Definition at line 155 of file DIE.h.

References Size.

Referenced by llvm::DwarfUnits::computeSizeAndOffset().

void llvm::DIE::setTag ( unsigned  Tag) [inline]

Member Data Documentation

Abbrev - Buffer for constructing abbreviation.

Definition at line 120 of file DIE.h.

Referenced by addChild(), addValue(), llvm::DIEBlock::ComputeSize(), llvm::DIEBlock::EmitValue(), getAbbrev(), getAbbrevNumber(), getTag(), print(), and setTag().

std::vector<DIE *> llvm::DIE::Children [protected]

Children DIEs.

Definition at line 124 of file DIE.h.

Referenced by addChild(), getChildren(), print(), and ~DIE().

unsigned llvm::DIE::IndentCount [mutable, protected]

Definition at line 134 of file DIE.h.

Offset - Offset in debug info section.

Definition at line 112 of file DIE.h.

Referenced by getOffset(), print(), and setOffset().

DIE* llvm::DIE::Parent [protected]

Definition at line 126 of file DIE.h.

Referenced by addChild(), and getParent().

Size - Size of instance + children.

Definition at line 116 of file DIE.h.

Referenced by getSize(), print(), and setSize().

Attribute values.

Definition at line 130 of file DIE.h.

Referenced by addValue(), llvm::DIEBlock::ComputeSize(), llvm::DIEBlock::EmitValue(), getValues(), and print().


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