LLVM API Documentation
#include <DIE.h>
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 |
Definition at line 120 of file DIE.h.
| unsigned llvm::DIE::getOffset | ( | ) | const [inline] |
| const std::vector<DIE *>& llvm::DIE::getChildren | ( | ) | const [inline] |
| SmallVector<DIEValue*, 32>& llvm::DIE::getValues | ( | ) | [inline] |
| CompileUnit* llvm::DIE::getAbstractCompileUnit | ( | ) | const [inline] |
| void llvm::DIE::setOffset | ( | unsigned | O | ) | [inline] |
| void llvm::DIE::setAbstractCompileUnit | ( | CompileUnit * | CU | ) | [inline] |
| unsigned llvm::DIE::SiblingOffset | ( | ) | const [inline] |
| 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] |
| void DIE::print | ( | std::ostream & | O, | |
| unsigned | IncIndent = 0 | |||
| ) |
Definition at line 129 of file DIE.cpp.
References Abbrev, llvm::dwarf::AttributeString(), Children, llvm::dwarf::ChildrenString(), Data, llvm::dwarf::FormEncodingString(), llvm::DIEAbbrev::getChildrenFlag(), llvm::DIEAbbrev::getData(), llvm::DIEAbbrev::getTag(), Indent, IndentCount, M, Offset, llvm::SmallVectorImpl< T >::size(), Size, llvm::dwarf::TagString(), and Values.
| void DIE::dump | ( | ) |
DIEAbbrev llvm::DIE::Abbrev [protected] |
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().
unsigned llvm::DIE::Offset [protected] |
unsigned llvm::DIE::Size [protected] |
std::vector<DIE *> llvm::DIE::Children [protected] |
SmallVector<DIEValue*, 32> llvm::DIE::Values [protected] |
Attributes values.
Definition at line 140 of file DIE.h.
Referenced by AddSiblingOffset(), llvm::DIEBlock::ComputeSize(), llvm::DIEBlock::EmitValue(), print(), and Profile().
CompileUnit* llvm::DIE::AbstractCU [protected] |
unsigned llvm::DIE::IndentCount [mutable, protected] |