LLVM API Documentation

llvm::DIEBlock Class Reference

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

#include <DIE.h>

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

List of all members.

Public Member Functions

 DIEBlock ()
virtual ~DIEBlock ()
unsigned ComputeSize (const TargetData *TD)
unsigned BestForm () const
virtual void EmitValue (Dwarf *D, unsigned Form) const
virtual unsigned SizeOf (const TargetData *TD, unsigned Form) const
virtual void Profile (FoldingSetNodeID &ID)
virtual void print (std::ostream &O)

Static Public Member Functions

static bool classof (const DIEBlock *)
static bool classof (const DIEValue *E)


Detailed Description

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

Definition at line 510 of file DIE.h.


Constructor & Destructor Documentation

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

Definition at line 513 of file DIE.h.

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

Definition at line 515 of file DIE.h.


Member Function Documentation

unsigned DIEBlock::ComputeSize ( const TargetData *  TD  ) 

ComputeSize - calculate the size of the block.

Definition at line 466 of file DIE.cpp.

References llvm::DIE::Abbrev, llvm::DIEAbbrev::getData(), SizeOf(), and llvm::DIE::Values.

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

BestForm - Choose the best form for data.

Definition at line 523 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.

void DIEBlock::EmitValue ( Dwarf *  D,
unsigned  Form 
) const [virtual]

unsigned DIEBlock::SizeOf ( const TargetData *  TD,
unsigned  Form 
) const [virtual]

SizeOf - Determine size of block data in bytes.

Implements llvm::DIEValue.

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

Referenced by ComputeSize().

void DIEBlock::Profile ( FoldingSetNodeID &  ID  )  [virtual]

Profile - Used to gather unique data for the value folding set.

Reimplemented from llvm::DIE.

Definition at line 508 of file DIE.cpp.

References llvm::FoldingSetNodeID::AddInteger(), llvm::DIEValue::isBlock, and llvm::DIE::Profile().

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

Definition at line 543 of file DIE.h.

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

Reimplemented from llvm::DIEValue.

Definition at line 544 of file DIE.h.

References llvm::DIEValue::getType().

void DIEBlock::print ( std::ostream &  O  )  [virtual]

Implements llvm::DIEValue.

Definition at line 514 of file DIE.cpp.

References llvm::DIE::print().


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