LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::DIEAbbrev Class Reference

Dwarf abbreviation, describes the organization of a debug information object. More...

#include "llvm/CodeGen/DIE.h"

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

Public Member Functions

 DIEAbbrev (dwarf::Tag T, bool C)
 
void AddAttribute (dwarf::Attribute Attribute, dwarf::Form Form)
 Adds another set of attribute information to the abbreviation. More...
 
void AddImplicitConstAttribute (dwarf::Attribute Attribute, int64_t Value)
 Adds attribute with DW_FORM_implicit_const value. More...
 
void Profile (FoldingSetNodeID &ID) const
 Used to gather unique data for the abbreviation folding set. More...
 
void Emit (const AsmPrinter *AP) const
 Print the abbreviation using the specified asm printer. More...
 
void print (raw_ostream &O) const
 
void dump () const
 
dwarf::Tag getTag () const
 Accessors. More...
 
unsigned getNumber () const
 
bool hasChildren () const
 
const SmallVectorImpl< DIEAbbrevData > & getData () const
 
void setChildrenFlag (bool hasChild)
 
void setNumber (unsigned N)
 
- Public Member Functions inherited from llvm::FoldingSetBase::Node
 Node ()=default
 
void * getNextInBucket () const
 
void SetNextInBucket (void *N)
 

Detailed Description

Dwarf abbreviation, describes the organization of a debug information object.

Definition at line 79 of file DIE.h.

Constructor & Destructor Documentation

◆ DIEAbbrev()

llvm::DIEAbbrev::DIEAbbrev ( dwarf::Tag  T,
bool  C 
)
inline

Definition at line 96 of file DIE.h.

Member Function Documentation

◆ AddAttribute()

void llvm::DIEAbbrev::AddAttribute ( dwarf::Attribute  Attribute,
dwarf::Form  Form 
)
inline

Adds another set of attribute information to the abbreviation.

Definition at line 109 of file DIE.h.

References llvm::DIEAbbrevData::DIEAbbrevData(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().

Referenced by llvm::DIE::generateAbbrev().

◆ AddImplicitConstAttribute()

void llvm::DIEAbbrev::AddImplicitConstAttribute ( dwarf::Attribute  Attribute,
int64_t  Value 
)
inline

◆ dump()

LLVM_DUMP_METHOD void DIEAbbrev::dump ( ) const

Definition at line 131 of file DIE.cpp.

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

◆ Emit()

void DIEAbbrev::Emit ( const AsmPrinter AP) const

◆ getData()

const SmallVectorImpl<DIEAbbrevData>& llvm::DIEAbbrev::getData ( ) const
inline

Definition at line 103 of file DIE.h.

References llvm::Data.

◆ getNumber()

unsigned llvm::DIEAbbrev::getNumber ( ) const
inline

Definition at line 101 of file DIE.h.

References llvm::Number.

Referenced by llvm::AsmPrinter::emitDwarfAbbrev().

◆ getTag()

dwarf::Tag llvm::DIEAbbrev::getTag ( ) const
inline

Accessors.

Definition at line 100 of file DIE.h.

◆ hasChildren()

bool llvm::DIEAbbrev::hasChildren ( ) const
inline

Definition at line 102 of file DIE.h.

Referenced by llvm::DIE::computeOffsetsAndAbbrevs().

◆ print()

LLVM_DUMP_METHOD void DIEAbbrev::print ( raw_ostream O) const

◆ Profile()

void DIEAbbrev::Profile ( FoldingSetNodeID ID) const

Used to gather unique data for the abbreviation folding set.

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

Definition at line 57 of file DIE.cpp.

References llvm::FoldingSetNodeID::AddInteger(), llvm::Data, N, and llvm::DIEAbbrevData::Profile().

Referenced by llvm::DIEAbbrevSet::uniqueAbbreviation().

◆ setChildrenFlag()

void llvm::DIEAbbrev::setChildrenFlag ( bool  hasChild)
inline

Definition at line 104 of file DIE.h.

◆ setNumber()

void llvm::DIEAbbrev::setNumber ( unsigned  N)
inline

Definition at line 105 of file DIE.h.

References N.


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