LLVM API Documentation
#include <DIE.h>
Public Member Functions | |
DIEAbbrev (dwarf::Tag T, bool C) | |
dwarf::Tag | getTag () const |
unsigned | getNumber () const |
bool | hasChildren () const |
const SmallVectorImpl < DIEAbbrevData > & | getData () const |
void | setChildrenFlag (bool hasChild) |
void | setNumber (unsigned N) |
void | AddAttribute (dwarf::Attribute Attribute, dwarf::Form Form) |
void | Profile (FoldingSetNodeID &ID) const |
void | Emit (AsmPrinter *AP) const |
void | print (raw_ostream &O) |
void | dump () |
DIEAbbrev - Dwarf abbreviation, describes the organization of a debug information object.
llvm::DIEAbbrev::DIEAbbrev | ( | dwarf::Tag | T, |
bool | C | ||
) | [inline] |
void llvm::DIEAbbrev::AddAttribute | ( | dwarf::Attribute | Attribute, |
dwarf::Form | Form | ||
) | [inline] |
AddAttribute - Adds another set of attribute information to the abbreviation.
Definition at line 88 of file DIE.h.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by llvm::DIE::addValue().
void DIEAbbrev::dump | ( | ) |
Definition at line 104 of file DIE.cpp.
References llvm::dbgs(), and print().
void DIEAbbrev::Emit | ( | AsmPrinter * | AP | ) | const |
Emit - Print the abbreviation using the specified asm printer.
Definition at line 61 of file DIE.cpp.
References llvm::dwarf::AttributeString(), llvm::dwarf::ChildrenString(), llvm::AsmPrinter::EmitULEB128(), llvm::dwarf::FormEncodingString(), llvm::DIEAbbrevData::getAttribute(), llvm::DIEAbbrevData::getForm(), N, llvm::SmallVectorTemplateCommon< T, typename >::size(), and llvm::dwarf::TagString().
const SmallVectorImpl<DIEAbbrevData>& llvm::DIEAbbrev::getData | ( | ) | const [inline] |
Definition at line 82 of file DIE.h.
Referenced by llvm::DwarfCompileUnit::applyStmtList(), llvm::DIELoc::ComputeSize(), llvm::DIEBlock::ComputeSize(), llvm::DwarfDebug::emitDIE(), llvm::DIELoc::EmitValue(), llvm::DIEBlock::EmitValue(), llvm::DIE::findAttribute(), getDIEStringAttr(), and llvm::DIE::print().
unsigned llvm::DIEAbbrev::getNumber | ( | ) | const [inline] |
Definition at line 80 of file DIE.h.
Referenced by llvm::DwarfFile::assignAbbrevNumber(), llvm::DwarfDebug::emitDIE(), and llvm::DIE::getAbbrevNumber().
dwarf::Tag llvm::DIEAbbrev::getTag | ( | ) | const [inline] |
Definition at line 79 of file DIE.h.
Referenced by llvm::DwarfDebug::emitDIE(), llvm::DIE::getTag(), and llvm::DIE::print().
bool llvm::DIEAbbrev::hasChildren | ( | ) | const [inline] |
Definition at line 81 of file DIE.h.
Referenced by llvm::DwarfDebug::emitDIE(), and llvm::DIE::print().
void DIEAbbrev::print | ( | raw_ostream & | O | ) |
Definition at line 87 of file DIE.cpp.
References llvm::dwarf::AttributeString(), llvm::dwarf::ChildrenString(), llvm::format(), llvm::dwarf::FormEncodingString(), N, llvm::SmallVectorTemplateCommon< T, typename >::size(), and llvm::dwarf::TagString().
Referenced by dump().
void DIEAbbrev::Profile | ( | FoldingSetNodeID & | ID | ) | const |
Profile - Used to gather unique data for the abbreviation folding set.
Definition at line 50 of file DIE.cpp.
References llvm::FoldingSetNodeID::AddInteger(), N, and llvm::SmallVectorTemplateCommon< T, typename >::size().
void llvm::DIEAbbrev::setChildrenFlag | ( | bool | hasChild | ) | [inline] |
Definition at line 83 of file DIE.h.
Referenced by llvm::DIE::addChild().
void llvm::DIEAbbrev::setNumber | ( | unsigned | N | ) | [inline] |
Definition at line 84 of file DIE.h.
Referenced by llvm::DwarfFile::assignAbbrevNumber().