|
LLVM
3.7.0
|
DIEBlock - Represents a block of values. More...
#include <DIE.h>
Public Member Functions | |
| DIEBlock () | |
| unsigned | ComputeSize (const AsmPrinter *AP) const |
| ComputeSize - Calculate the size of the location expression. More... | |
| dwarf::Form | BestForm () const |
| BestForm - Choose the best form for data. More... | |
| void | EmitValue (const AsmPrinter *AP, dwarf::Form Form) const |
| EmitValue - Emit block data. More... | |
| unsigned | SizeOf (const AsmPrinter *AP, dwarf::Form Form) const |
| SizeOf - Determine size of block data in bytes. More... | |
| void | print (raw_ostream &O) const |
Public Member Functions inherited from llvm::DIE | |
| unsigned | getAbbrevNumber () const |
| dwarf::Tag | getTag () const |
| unsigned | getOffset () const |
| unsigned | getSize () const |
| bool | hasChildren () const |
| child_range | children () |
| const_child_range | children () const |
| value_range | values () |
| const_value_range | values () const |
| DIE * | getParent () const |
| DIEAbbrev | generateAbbrev () const |
| Generate the abbreviation for this DIE. More... | |
| void | setAbbrevNumber (unsigned I) |
| Set the abbreviation number for this DIE. More... | |
| const DIE * | getUnit () const |
| Climb up the parent chain to get the compile or type unit DIE this DIE belongs to. More... | |
| const DIE * | getUnitOrNull () const |
| Similar to getUnit, returns null when DIE is not added to an owner yet. More... | |
| void | setOffset (unsigned O) |
| void | setSize (unsigned S) |
| value_iterator | addValue (BumpPtrAllocator &Alloc, DIEValue Value) |
| addValue - Add a value and attributes to a DIE. More... | |
| template<class T > | |
| value_iterator | addValue (BumpPtrAllocator &Alloc, dwarf::Attribute Attribute, dwarf::Form Form, T &&Value) |
| DIE & | addChild (DIE *Child) |
| Add a child to the DIE. More... | |
| DIEValue | findAttribute (dwarf::Attribute Attribute) const |
| Find a value in the DIE with the attribute given. More... | |
| void | print (raw_ostream &O, unsigned IndentCount=0) const |
| void | dump () |
|
inline |
BestForm - Choose the best form for data.
Definition at line 796 of file DIE.h.
References llvm::dwarf::DW_FORM_block, llvm::dwarf::DW_FORM_block1, llvm::dwarf::DW_FORM_block2, and llvm::dwarf::DW_FORM_block4.
Referenced by llvm::DwarfUnit::addBlock().
| unsigned DIEBlock::ComputeSize | ( | const AsmPrinter * | AP | ) | const |
ComputeSize - Calculate the size of the location expression.
ComputeSize - calculate the size of the block.
Definition at line 559 of file DIE.cpp.
References llvm::DIE::Values.
Referenced by llvm::DwarfUnit::addBlock().
| void DIEBlock::EmitValue | ( | const AsmPrinter * | AP, |
| dwarf::Form | Form | ||
| ) | const |
EmitValue - Emit block data.
Definition at line 570 of file DIE.cpp.
References llvm::dwarf::DW_FORM_block, llvm::dwarf::DW_FORM_block1, llvm::dwarf::DW_FORM_block2, llvm::dwarf::DW_FORM_block4, llvm::AsmPrinter::EmitInt16(), llvm::AsmPrinter::EmitInt32(), llvm::AsmPrinter::EmitInt8(), llvm::AsmPrinter::EmitULEB128(), llvm_unreachable, and llvm::DIE::Values.
| void DIEBlock::print | ( | raw_ostream & | O | ) | const |
Definition at line 596 of file DIE.cpp.
References llvm::DIE::print().
| unsigned DIEBlock::SizeOf | ( | const AsmPrinter * | AP, |
| dwarf::Form | Form | ||
| ) | const |
SizeOf - Determine size of block data in bytes.
Definition at line 585 of file DIE.cpp.
References llvm::dwarf::DW_FORM_block, llvm::dwarf::DW_FORM_block1, llvm::dwarf::DW_FORM_block2, llvm::dwarf::DW_FORM_block4, llvm::getULEB128Size(), and llvm_unreachable.
1.8.6