LLVM API Documentation
DIEBlock - Represents a block of values. More...
#include <DIE.h>
Public Member Functions | |
DIEBlock () | |
unsigned | ComputeSize (AsmPrinter *AP) const |
dwarf::Form | BestForm () const |
void | EmitValue (AsmPrinter *AP, dwarf::Form Form) const override |
unsigned | SizeOf (AsmPrinter *AP, dwarf::Form Form) const override |
void | print (raw_ostream &O) const override |
Static Public Member Functions | |
static bool | classof (const DIEValue *E) |
llvm::DIEBlock::DIEBlock | ( | ) | [inline] |
dwarf::Form llvm::DIEBlock::BestForm | ( | ) | const [inline] |
BestForm - Choose the best form for data.
Definition at line 529 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().
static bool llvm::DIEBlock::classof | ( | const DIEValue * | E | ) | [inline, static] |
Definition at line 548 of file DIE.h.
References llvm::DIEValue::getType(), and llvm::DIEValue::isBlock.
unsigned DIEBlock::ComputeSize | ( | AsmPrinter * | AP | ) | const |
ComputeSize - Calculate the size of the location expression.
ComputeSize - calculate the size of the block.
Definition at line 493 of file DIE.cpp.
References llvm::DIE::Abbrev, llvm::DIEAbbrev::getData(), N, llvm::SmallVectorTemplateCommon< T, typename >::size(), SizeOf(), and llvm::DIE::Values.
Referenced by llvm::DwarfUnit::addBlock().
void DIEBlock::EmitValue | ( | AsmPrinter * | Asm, |
dwarf::Form | Form | ||
) | const [override, virtual] |
EmitValue - Emit location data.
EmitValue - Emit block data.
Implements llvm::DIEValue.
Definition at line 505 of file DIE.cpp.
References llvm::DIE::Abbrev, 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::DIEAbbrev::getData(), llvm_unreachable, N, llvm::SmallVectorTemplateCommon< T, typename >::size(), and llvm::DIE::Values.
void DIEBlock::print | ( | raw_ostream & | O | ) | const [override, virtual] |
Implements llvm::DIEValue.
unsigned DIEBlock::SizeOf | ( | AsmPrinter * | AP, |
dwarf::Form | Form | ||
) | const [override, virtual] |
SizeOf - Determine size of location data in bytes.
SizeOf - Determine size of block data in bytes.
Implements llvm::DIEValue.
Definition at line 521 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.
Referenced by ComputeSize().