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 |
| const SmallVectorImpl < DIEValue * > & | getValues () const |
| DIE * | getParent () const |
| DIE * | getCompileUnit () |
| 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 |
| DIE * | Parent |
| SmallVector< DIEValue *, 12 > | Values |
| unsigned | IndentCount |
| void llvm::DIE::addChild | ( | DIE * | Child | ) | [inline] |
addChild - Add a child to the DIE.
Definition at line 166 of file DIE.h.
References Abbrev, Children, llvm::dwarf::DW_CHILDREN_yes, getParent(), Parent, and llvm::DIEAbbrev::setChildrenFlag().
Referenced by llvm::CompileUnit::addTemplateParams(), llvm::CompileUnit::constructSubrangeDIE(), llvm::CompileUnit::constructTypeDIE(), and llvm::CompileUnit::getOrCreateSubprogramDIE().
addValue - Add a value and attributes to a DIE.
Definition at line 159 of file DIE.h.
References Abbrev, llvm::DIEAbbrev::AddAttribute(), llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), and Values.
Referenced by llvm::CompileUnit::addBlock(), llvm::CompileUnit::addDelta(), llvm::CompileUnit::addDIEEntry(), llvm::CompileUnit::addFlag(), llvm::CompileUnit::addLabel(), llvm::CompileUnit::addLabelAddress(), llvm::CompileUnit::addLocalString(), llvm::CompileUnit::addOpAddress(), llvm::CompileUnit::addSInt(), llvm::CompileUnit::addString(), llvm::CompileUnit::addType(), llvm::CompileUnit::addUInt(), and llvm::CompileUnit::createMemberDIE().
| 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] |
Definition at line 143 of file DIE.h.
References Abbrev, and llvm::DIEAbbrev::getNumber().
Referenced by llvm::DwarfUnits::computeSizeAndOffset(), and llvm::DwarfDebug::emitDIE().
| 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] |
Definition at line 145 of file DIE.h.
References Offset.
Referenced by compareDIEs(), llvm::DwarfUnits::computeSizeAndOffset(), llvm::DwarfDebug::emitDIE(), llvm::DIEEntry::EmitValue(), and llvm::DwarfAccelTable::HashDataContents::print().
| 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] |
Definition at line 144 of file DIE.h.
References Abbrev, and llvm::DIEAbbrev::getTag().
Referenced by getCompileUnit(), llvm::DwarfUnits::getCUOffset(), and llvm::DwarfAccelTable::HashDataContents::print().
| 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 |
Definition at line 124 of file DIE.cpp.
References Abbrev, llvm::dwarf::AttributeString(), Children, llvm::dwarf::ChildrenString(), llvm::object::macho::Data, llvm::format(), llvm::dwarf::FormEncodingString(), llvm::DIEAbbrev::getChildrenFlag(), llvm::DIEAbbrev::getData(), llvm::DIEAbbrev::getTag(), N, Offset, Size, llvm::SmallVectorTemplateCommon< T, typename >::size(), llvm::dwarf::TagString(), and Values.
Referenced by dump().
| 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] |
Definition at line 153 of file DIE.h.
References Abbrev, and llvm::DIEAbbrev::setTag().
Referenced by llvm::CompileUnit::constructArrayTypeDIE(), and llvm::CompileUnit::constructTypeDIE().
DIEAbbrev llvm::DIE::Abbrev [protected] |
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] |
unsigned llvm::DIE::Offset [protected] |
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().
unsigned llvm::DIE::Size [protected] |
SmallVector<DIEValue*, 12> llvm::DIE::Values [protected] |
Attribute values.
Definition at line 130 of file DIE.h.
Referenced by addValue(), llvm::DIEBlock::ComputeSize(), llvm::DIEBlock::EmitValue(), getValues(), and print().