LLVM API Documentation

llvm::DIE Class Reference

Collaboration diagram for llvm::DIE:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DIE (unsigned Tag)
 ~DIE ()
unsigned getAbbrevID () const
unsigned getOffset () const
unsigned getSize () const
const std::vector< DIE * > & getChildren () const
const std::vector< DIEValue * > & getValues () const
void setOffset (unsigned O)
void setSize (unsigned S)
unsigned SiblingOffset () const
void AddSiblingOffset ()
void AddUInt (unsigned Attribute, unsigned Form, uint64_t Integer)
void AddSInt (unsigned Attribute, unsigned Form, int64_t Integer)
void AddString (unsigned Attribute, unsigned Form, const std::string &String)
void AddLabel (unsigned Attribute, unsigned Form, const DWLabel &Label)
void AddObjectLabel (unsigned Attribute, unsigned Form, const std::string &Label)
void AddDelta (unsigned Attribute, unsigned Form, const DWLabel &Hi, const DWLabel &Lo)
void AddDIEntry (unsigned Attribute, unsigned Form, DIE *Entry)
void AddBlock (unsigned Attribute, unsigned Form, DIEBlock *Block)
void Complete (DwarfWriter &DW)
void AddChild (DIE *Child)
 AddChild - Add a child to the DIE.

Detailed Description

Definition at line 422 of file DwarfWriter.cpp.


Constructor & Destructor Documentation

DIE::DIE ( unsigned  Tag  ) 

Definition at line 832 of file DwarfWriter.cpp.

DIE::~DIE (  ) 

Definition at line 841 of file DwarfWriter.cpp.

References M.


Member Function Documentation

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

Definition at line 436 of file DwarfWriter.cpp.

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

Definition at line 437 of file DwarfWriter.cpp.

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

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

Definition at line 438 of file DwarfWriter.cpp.

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

Definition at line 439 of file DwarfWriter.cpp.

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

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

Definition at line 440 of file DwarfWriter.cpp.

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

Definition at line 441 of file DwarfWriter.cpp.

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

Definition at line 442 of file DwarfWriter.cpp.

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

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

Definition at line 446 of file DwarfWriter.cpp.

void DIE::AddSiblingOffset (  ) 

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

Definition at line 855 of file DwarfWriter.cpp.

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

void DIE::AddUInt ( unsigned  Attribute,
unsigned  Form,
uint64_t  Integer 
)

AddUInt - Add an unsigned integer attribute data and value.

Definition at line 863 of file DwarfWriter.cpp.

References llvm::DIEAbbrev::AddAttribute(), and llvm::DIEInteger::BestForm().

void DIE::AddSInt ( unsigned  Attribute,
unsigned  Form,
int64_t  Integer 
)

AddSInt - Add an signed integer attribute data and value.

Definition at line 872 of file DwarfWriter.cpp.

References llvm::DIEAbbrev::AddAttribute(), and llvm::DIEInteger::BestForm().

void DIE::AddString ( unsigned  Attribute,
unsigned  Form,
const std::string &  String 
)

AddString - Add a std::string attribute data and value.

Definition at line 881 of file DwarfWriter.cpp.

References llvm::DIEAbbrev::AddAttribute().

void DIE::AddLabel ( unsigned  Attribute,
unsigned  Form,
const DWLabel Label 
)

AddLabel - Add a Dwarf label attribute data and value.

Definition at line 889 of file DwarfWriter.cpp.

References llvm::DIEAbbrev::AddAttribute().

void DIE::AddObjectLabel ( unsigned  Attribute,
unsigned  Form,
const std::string &  Label 
)

AddObjectLabel - Add a non-Dwarf label attribute data and value.

Definition at line 897 of file DwarfWriter.cpp.

References llvm::DIEAbbrev::AddAttribute().

void DIE::AddDelta ( unsigned  Attribute,
unsigned  Form,
const DWLabel Hi,
const DWLabel Lo 
)

AddDelta - Add a label delta attribute data and value.

Definition at line 905 of file DwarfWriter.cpp.

References llvm::DIEAbbrev::AddAttribute(), SPISD::Hi, and SPISD::Lo.

void DIE::AddDIEntry ( unsigned  Attribute,
unsigned  Form,
DIE Entry 
)

AddDIEntry - Add a DIE attribute data and value.

Definition at line 913 of file DwarfWriter.cpp.

References llvm::DIEAbbrev::AddAttribute().

void DIE::AddBlock ( unsigned  Attribute,
unsigned  Form,
DIEBlock Block 
)

AddBlock - Add block data.

Definition at line 920 of file DwarfWriter.cpp.

References llvm::DIEAbbrev::AddAttribute(), llvm::DIEBlock::BestForm(), and llvm::DIEBlock::Size.

void DIE::Complete ( DwarfWriter DW  ) 

Complete - Indicate that all attributes have been added and ready to get an abbreviation ID.

Definition at line 929 of file DwarfWriter.cpp.

References DW.

void DIE::AddChild ( DIE Child  ) 

AddChild - Add a child to the DIE.

AddChild - Add a child to the DIE.

Definition at line 937 of file DwarfWriter.cpp.

References llvm::dwarf::DW_CHILDREN_yes, and llvm::DIEAbbrev::setChildrenFlag().


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