LLVM API Documentation

llvm::DIE Class Reference

#include <DIE.h>

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

List of all members.

Public Member Functions

 DIE (unsigned Tag)
virtual ~DIE ()
DIEAbbrev & getAbbrev ()
unsigned getAbbrevNumber () const
unsigned getTag () const
unsigned getOffset () const
unsigned getSize () const
const std::vector< DIE * > & getChildren () const
SmallVector< DIEValue *, 32 > & getValues ()
CompileUnit * getAbstractCompileUnit () const
void setTag (unsigned Tag)
void setOffset (unsigned O)
void setSize (unsigned S)
void setAbstractCompileUnit (CompileUnit *CU)
void AddValue (unsigned Attribute, unsigned Form, DIEValue *Value)
unsigned SiblingOffset () const
void AddSiblingOffset ()
void AddChild (DIE *Child)
void Detach ()
void Profile (FoldingSetNodeID &ID)
void print (std::ostream *O, unsigned IncIndent=0)
void print (std::ostream &O, unsigned IncIndent=0)
void dump ()

Protected Attributes

DIEAbbrev Abbrev
unsigned Offset
unsigned Size
std::vector< DIE * > Children
SmallVector< DIEValue *, 32 > Values
CompileUnit * AbstractCU
 Abstract compile unit.
unsigned IndentCount


Detailed Description

Definition at line 120 of file DIE.h.


Constructor & Destructor Documentation

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

Definition at line 148 of file DIE.h.

DIE::~DIE (  )  [virtual]

Definition at line 103 of file DIE.cpp.

References Children.


Member Function Documentation

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

Definition at line 154 of file DIE.h.

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

Definition at line 155 of file DIE.h.

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

Definition at line 156 of file DIE.h.

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

Definition at line 157 of file DIE.h.

References Offset.

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

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

Definition at line 158 of file DIE.h.

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

Definition at line 159 of file DIE.h.

References Children.

SmallVector<DIEValue*, 32>& llvm::DIE::getValues (  )  [inline]

Definition at line 160 of file DIE.h.

References Values.

CompileUnit* llvm::DIE::getAbstractCompileUnit (  )  const [inline]

Definition at line 161 of file DIE.h.

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

Definition at line 163 of file DIE.h.

void llvm::DIE::setOffset ( unsigned  O  )  [inline]

Definition at line 164 of file DIE.h.

References Offset.

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

Definition at line 165 of file DIE.h.

void llvm::DIE::setAbstractCompileUnit ( CompileUnit *  CU  )  [inline]

Definition at line 166 of file DIE.h.

Referenced by llvm::DwarfDebug::RecordInlinedFnStart().

void llvm::DIE::AddValue ( unsigned  Attribute,
unsigned  Form,
DIEValue *  Value 
) [inline]

AddValue - Add a value and attributes to a DIE.

Definition at line 170 of file DIE.h.

References Values.

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

SiblingOffset - Return the offset of the debug information entry's sibling.

Definition at line 177 of file DIE.h.

References Offset.

void DIE::AddSiblingOffset (  ) 

AddSiblingOffset - Add a sibling offset field to the front of the DIE.

Definition at line 110 of file DIE.cpp.

References Abbrev, llvm::DIEAbbrev::AddFirstAttribute(), llvm::dwarf::DW_AT_sibling, llvm::dwarf::DW_FORM_ref4, and Values.

void llvm::DIE::AddChild ( DIE *  Child  )  [inline]

AddChild - Add a child to the DIE.

Definition at line 185 of file DIE.h.

References Children, and llvm::dwarf::DW_CHILDREN_yes.

Referenced by llvm::CompileUnit::AddDie().

void llvm::DIE::Detach (  )  [inline]

Detach - Detaches objects connected to it after copying.

Definition at line 192 of file DIE.h.

References Children.

Referenced by llvm::CompileUnit::AddDie().

void DIE::Profile ( FoldingSetNodeID &  ID  ) 

Profile - Used to gather unique data for the value folding set.

Reimplemented in llvm::DIEBlock.

Definition at line 118 of file DIE.cpp.

References Abbrev, llvm::FoldingSetNodeID::AddPointer(), Children, M, llvm::DIEAbbrev::Profile(), and Values.

Referenced by llvm::CompileUnit::AddDie(), and llvm::DIEBlock::Profile().

void llvm::DIE::print ( std::ostream *  O,
unsigned  IncIndent = 0 
) [inline]

Definition at line 201 of file DIE.h.

Referenced by dump(), and llvm::DIEBlock::print().

void DIE::print ( std::ostream &  O,
unsigned  IncIndent = 0 
)

void DIE::dump (  ) 

Definition at line 178 of file DIE.cpp.

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


Member Data Documentation

Abbrev - Buffer for constructing abbreviation.

Definition at line 124 of file DIE.h.

Referenced by AddSiblingOffset(), llvm::DIEBlock::ComputeSize(), llvm::DIEBlock::EmitValue(), print(), and Profile().

Offset - Offset in debug info section.

Definition at line 128 of file DIE.h.

Referenced by print().

Size - Size of instance + children.

Definition at line 132 of file DIE.h.

Referenced by print().

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

Children DIEs.

Definition at line 136 of file DIE.h.

Referenced by print(), Profile(), and ~DIE().

Attributes values.

Definition at line 140 of file DIE.h.

Referenced by AddSiblingOffset(), llvm::DIEBlock::ComputeSize(), llvm::DIEBlock::EmitValue(), print(), and Profile().

Abstract compile unit.

Definition at line 143 of file DIE.h.

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

Definition at line 146 of file DIE.h.

Referenced by print().


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