|
LLVM
3.7.0
|
DIELoc - Represents an expression location. More...
#include <DIE.h>
Public Member Functions | |
| DIELoc () | |
| unsigned | ComputeSize (const AsmPrinter *AP) const |
| ComputeSize - Calculate the size of the location expression. More... | |
| dwarf::Form | BestForm (unsigned DwarfVersion) const |
| BestForm - Choose the best form for data. More... | |
| void | EmitValue (const AsmPrinter *AP, dwarf::Form Form) const |
| EmitValue - Emit location data. More... | |
| unsigned | SizeOf (const AsmPrinter *AP, dwarf::Form Form) const |
| SizeOf - Determine size of location 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 760 of file DIE.h.
References llvm::dwarf::DW_FORM_block, llvm::dwarf::DW_FORM_block1, llvm::dwarf::DW_FORM_block2, llvm::dwarf::DW_FORM_block4, and llvm::dwarf::DW_FORM_exprloc.
Referenced by llvm::DwarfUnit::addBlock().
| unsigned DIELoc::ComputeSize | ( | const AsmPrinter * | AP | ) | const |
ComputeSize - Calculate the size of the location expression.
ComputeSize - calculate the size of the location expression.
Definition at line 506 of file DIE.cpp.
References llvm::DIE::Values.
Referenced by llvm::DwarfUnit::addBlock().
| void DIELoc::EmitValue | ( | const AsmPrinter * | AP, |
| dwarf::Form | Form | ||
| ) | const |
EmitValue - Emit location data.
Definition at line 517 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::dwarf::DW_FORM_exprloc, llvm::AsmPrinter::EmitInt16(), llvm::AsmPrinter::EmitInt32(), llvm::AsmPrinter::EmitInt8(), llvm::AsmPrinter::EmitULEB128(), llvm_unreachable, and llvm::DIE::Values.
| void DIELoc::print | ( | raw_ostream & | O | ) | const |
Definition at line 547 of file DIE.cpp.
References llvm::DIE::print().
| unsigned DIELoc::SizeOf | ( | const AsmPrinter * | AP, |
| dwarf::Form | Form | ||
| ) | const |
SizeOf - Determine size of location data in bytes.
Definition at line 534 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::dwarf::DW_FORM_exprloc, llvm::getULEB128Size(), and llvm_unreachable.
1.8.6