LLVM API Documentation

Public Member Functions | Static Public Member Functions
llvm::DIEBlock Class Reference

DIEBlock - A block of values. Primarily used for location expressions. More...

#include <DIE.h>

Inheritance diagram for llvm::DIEBlock:
Inheritance graph
[legend]
Collaboration diagram for llvm::DIEBlock:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DIEBlock ()
virtual ~DIEBlock ()
unsigned ComputeSize (AsmPrinter *AP)
unsigned BestForm () const
virtual void EmitValue (AsmPrinter *AP, unsigned Form) const
virtual unsigned SizeOf (AsmPrinter *AP, unsigned Form) const
virtual void print (raw_ostream &O)

Static Public Member Functions

static bool classof (const DIEValue *E)

Detailed Description

DIEBlock - A block of values. Primarily used for location expressions.

Definition at line 355 of file DIE.h.


Constructor & Destructor Documentation

llvm::DIEBlock::DIEBlock ( ) [inline]

Definition at line 358 of file DIE.h.

virtual llvm::DIEBlock::~DIEBlock ( ) [inline, virtual]

Definition at line 360 of file DIE.h.


Member Function Documentation

unsigned llvm::DIEBlock::BestForm ( ) const [inline]

BestForm - Choose the best form for data.

Definition at line 368 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::CompileUnit::addBlock().

static bool llvm::DIEBlock::classof ( const DIEValue E) [inline, static]

Definition at line 384 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 324 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::CompileUnit::addBlock().

void DIEBlock::EmitValue ( AsmPrinter Asm,
unsigned  Form 
) const [virtual]
void DIEBlock::print ( raw_ostream O) [virtual]

Implements llvm::DIEValue.

Definition at line 363 of file DIE.cpp.

unsigned DIEBlock::SizeOf ( AsmPrinter AP,
unsigned  Form 
) const [virtual]

SizeOf - Determine size of block data in bytes.

Implements llvm::DIEValue.

Definition at line 352 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::MCAsmInfo::getULEB128Size(), and llvm_unreachable.

Referenced by ComputeSize().


The documentation for this class was generated from the following files: