10 #ifndef LLVM_DEBUGINFO_DWARFABBREVIATIONDECLARATION_H 11 #define LLVM_DEBUGINFO_DWARFABBREVIATIONDECLARATION_H 38 this->ByteSize.HasByteSize = ByteSize.
hasValue();
39 if (this->ByteSize.HasByteSize)
60 struct ByteSizeStorage {
71 return Form == dwarf::DW_FORM_implicit_const;
102 assert(idx < AttributeSpecs.size());
103 return AttributeSpecs[idx].Form;
107 return AttributeSpecs.size();
111 assert(idx < AttributeSpecs.size());
112 return AttributeSpecs[idx].Attr;
151 struct FixedSizeInfo {
153 uint16_t NumBytes = 0;
155 uint8_t NumAddrs = 0;
157 uint8_t NumRefAddrs = 0;
159 uint8_t NumDwarfOffsets = 0;
161 FixedSizeInfo() =
default;
174 uint8_t CodeByteSize;
184 #endif // LLVM_DEBUGINFO_DWARFABBREVIATIONDECLARATION_H uint8_t getCodeByteSize() const
bool extract(DataExtractor Data, uint32_t *OffsetPtr)
This class represents lattice values for constants.
Optional< int64_t > getByteSize(const DWARFUnit &U) const
Get the fixed byte size of this Form if possible.
This provides a very simple, boring adaptor for a begin and end iterator into a range type...
int64_t getImplicitConstValue() const
Optional< size_t > getFixedAttributesByteSize(const DWARFUnit &U) const
Optional< uint32_t > findAttributeIndex(dwarf::Attribute attr) const
Get the index of the specified attribute.
bool isImplicitConst() const
AttributeSpec(dwarf::Attribute A, dwarf::Form F, int64_t Value)
dwarf::Form getFormByIndex(uint32_t idx) const
attr_iterator_range attributes() const
Optional< DWARFFormValue > getAttributeValue(const uint32_t DIEOffset, const dwarf::Attribute Attr, const DWARFUnit &U) const
Extract a DWARF form value from a DIE specified by DIE offset.
DWARFAbbreviationDeclaration()
dwarf::Tag getTag() const
void dump(raw_ostream &OS) const
AttributeSpec(dwarf::Attribute A, dwarf::Form F, Optional< uint8_t > ByteSize)
A range adaptor for a pair of iterators.
This file contains constants used for implementing Dwarf debug support.
dwarf::Attribute getAttrByIndex(uint32_t idx) const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVM Value Representation.
This class implements an extremely fast bulk output stream that can only output to a stream...
size_t getNumAttributes() const
iterator_range< AttributeSpecVector::const_iterator > attr_iterator_range