LLVM API Documentation
#include <DIE.h>
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) |
Definition at line 510 of file DIE.h.
| 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.
EmitValue - Emit block data.
Implements llvm::DIEValue.
Definition at line 478 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::EmitULEB128Bytes(), llvm::AsmPrinter::EOL(), llvm::Dwarf::getAsm(), llvm::DIEAbbrev::getData(), llvm_unreachable, and llvm::DIE::Values.
| 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().
Reimplemented from llvm::DIEValue.
Definition at line 544 of file DIE.h.
References llvm::DIEValue::getType().
| void DIEBlock::print | ( | std::ostream & | O | ) | [virtual] |