LLVM 17.0.0git
|
DIEBlock - Represents a block of values. More...
#include "llvm/CodeGen/DIE.h"
Public Member Functions | |
DIEBlock ()=default | |
unsigned | computeSize (const dwarf::FormParams &FormParams) const |
Calculate the size of the location expression. | |
void | setSize (unsigned size) |
dwarf::Form | BestForm () const |
BestForm - Choose the best form for data. | |
void | emitValue (const AsmPrinter *Asm, dwarf::Form Form) const |
EmitValue - Emit block data. | |
unsigned | sizeOf (const dwarf::FormParams &, dwarf::Form Form) const |
sizeOf - Determine size of block data in bytes. | |
void | print (raw_ostream &O) const |
![]() | |
value_iterator | addValue (BumpPtrAllocator &Alloc, const DIEValue &V) |
template<class T > | |
value_iterator | addValue (BumpPtrAllocator &Alloc, dwarf::Attribute Attribute, dwarf::Form Form, T &&Value) |
void | takeValues (DIEValueList &Other) |
Take ownership of the nodes in Other , and append them to the back of the list. | |
value_range | values () |
const_value_range | values () const |
Additional Inherited Members | |
![]() | |
using | value_range = iterator_range< value_iterator > |
using | const_value_range = iterator_range< const_value_iterator > |
|
default |
|
inline |
unsigned DIEBlock::computeSize | ( | const dwarf::FormParams & | FormParams | ) | const |
Calculate the size of the location expression.
Definition at line 760 of file DIE.cpp.
References llvm::DIEValueList::values().
void DIEBlock::emitValue | ( | const AsmPrinter * | Asm, |
dwarf::Form | Form | ||
) | const |
EmitValue - Emit block data.
Definition at line 771 of file DIE.cpp.
References llvm_unreachable, and llvm::DIEValueList::values().
LLVM_DUMP_METHOD void DIEBlock::print | ( | raw_ostream & | O | ) | const |
Definition at line 804 of file DIE.cpp.
References printValues().
|
inline |
Definition at line 983 of file DIE.h.
References llvm::size().
unsigned DIEBlock::sizeOf | ( | const dwarf::FormParams & | , |
dwarf::Form | Form | ||
) | const |
sizeOf - Determine size of block data in bytes.
Definition at line 791 of file DIE.cpp.
References llvm::getULEB128Size(), and llvm_unreachable.