LLVM API Documentation
DIELoc - Represents an expression location. More...
#include <DIE.h>
Public Member Functions | |
DIELoc () | |
unsigned | ComputeSize (AsmPrinter *AP) const |
dwarf::Form | BestForm (unsigned DwarfVersion) 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::DIELoc::DIELoc | ( | ) | [inline] |
dwarf::Form llvm::DIELoc::BestForm | ( | unsigned | DwarfVersion | ) | const [inline] |
BestForm - Choose the best form for data.
Definition at line 486 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().
static bool llvm::DIELoc::classof | ( | const DIEValue * | E | ) | [inline, static] |
Definition at line 508 of file DIE.h.
References llvm::DIEValue::getType(), and llvm::DIEValue::isLoc.
unsigned DIELoc::ComputeSize | ( | AsmPrinter * | AP | ) | const |
ComputeSize - Calculate the size of the location expression.
ComputeSize - calculate the size of the location expression.
Definition at line 438 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 DIELoc::EmitValue | ( | AsmPrinter * | Asm, |
dwarf::Form | Form | ||
) | const [override, virtual] |
EmitValue - Emit location data.
Implements llvm::DIEValue.
Definition at line 450 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::dwarf::DW_FORM_exprloc, 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 DIELoc::print | ( | raw_ostream & | O | ) | const [override, virtual] |
Implements llvm::DIEValue.
unsigned DIELoc::SizeOf | ( | AsmPrinter * | AP, |
dwarf::Form | Form | ||
) | const [override, virtual] |
SizeOf - Determine size of location data in bytes.
Implements llvm::DIEValue.
Definition at line 468 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.
Referenced by ComputeSize().