LLVM API Documentation
DIEBlock - A block of values. Primarily used for location expressions. More...
#include <DIE.h>
Public Member Functions | |
DIEBlock () | |
unsigned | ComputeSize (AsmPrinter *AP) |
dwarf::Form | BestForm () const |
virtual void | EmitValue (AsmPrinter *AP, dwarf::Form Form) const |
virtual unsigned | SizeOf (AsmPrinter *AP, dwarf::Form Form) const |
virtual void | print (raw_ostream &O) const |
![]() | |
DIEValue (unsigned T) | |
virtual | ~DIEValue () |
unsigned | getType () const |
void | dump () const |
![]() | |
DIE (unsigned Tag) | |
virtual | ~DIE () |
DIEAbbrev & | getAbbrev () |
const DIEAbbrev & | getAbbrev () const |
unsigned | getAbbrevNumber () const |
dwarf::Tag | getTag () const |
unsigned | getOffset () const |
unsigned | getSize () const |
const std::vector< DIE * > & | getChildren () const |
const SmallVectorImpl < DIEValue * > & | getValues () const |
DIE * | getParent () const |
const DIE * | getCompileUnit () const |
const DIE * | getCompileUnitOrNull () const |
void | setOffset (unsigned O) |
void | setSize (unsigned S) |
void | addValue (dwarf::Attribute Attribute, dwarf::Form Form, DIEValue *Value) |
void | addChild (DIE *Child) |
DIEValue * | findAttribute (uint16_t Attribute) |
void | print (raw_ostream &O, unsigned IndentCount=0) const |
void | dump () |
Static Public Member Functions | |
static bool | classof (const DIEValue *E) |
Additional Inherited Members | |
![]() | |
enum | { isInteger, isString, isExpr, isLabel, isDelta, isEntry, isBlock } |
![]() | |
unsigned | Type |
![]() | |
unsigned | Offset |
unsigned | Size |
DIEAbbrev | Abbrev |
std::vector< DIE * > | Children |
DIE * | Parent |
SmallVector< DIEValue *, 12 > | Values |
DIEBlock - A block of values. Primarily used for location expressions.
|
inline |
BestForm - Choose the best form for data.
Definition at line 428 of file DIE.h.
Referenced by llvm::CompileUnit::addBlock().
Definition at line 444 of file DIE.h.
References llvm::DIEValue::getType(), and llvm::DIEValue::isBlock.
unsigned DIEBlock::ComputeSize | ( | AsmPrinter * | AP | ) |
ComputeSize - calculate the size of the block.
Definition at line 406 of file DIE.cpp.
References llvm::DIE::Abbrev, llvm::DIEAbbrev::getData(), N, SizeOf(), and llvm::DIE::Values.
Referenced by llvm::CompileUnit::addBlock().
|
virtual |
EmitValue - Emit block data.
Implements llvm::DIEValue.
Definition at line 418 of file DIE.cpp.
References llvm::DIE::Abbrev, llvm::AsmPrinter::EmitInt16(), llvm::AsmPrinter::EmitInt32(), llvm::AsmPrinter::EmitInt8(), llvm::AsmPrinter::EmitULEB128(), llvm::DIEAbbrev::getData(), llvm_unreachable, N, and llvm::DIE::Values.
|
virtual |
|
virtual |
SizeOf - Determine size of block data in bytes.
Implements llvm::DIEValue.
Definition at line 434 of file DIE.cpp.
References llvm::MCAsmInfo::getULEB128Size(), and llvm_unreachable.
Referenced by ComputeSize().