Lines Matching refs:DWARFFormValue
31 static const DWARFFormValue::FormClass DWARF5FormClasses[] = {
32 DWARFFormValue::FC_Unknown, // 0x0
33 DWARFFormValue::FC_Address, // 0x01 DW_FORM_addr
34 DWARFFormValue::FC_Unknown, // 0x02 unused
35 DWARFFormValue::FC_Block, // 0x03 DW_FORM_block2
36 DWARFFormValue::FC_Block, // 0x04 DW_FORM_block4
37 DWARFFormValue::FC_Constant, // 0x05 DW_FORM_data2
39 DWARFFormValue::FC_Constant, // 0x06 DW_FORM_data4
40 DWARFFormValue::FC_Constant, // 0x07 DW_FORM_data8
42 DWARFFormValue::FC_String, // 0x08 DW_FORM_string
43 DWARFFormValue::FC_Block, // 0x09 DW_FORM_block
44 DWARFFormValue::FC_Block, // 0x0a DW_FORM_block1
45 DWARFFormValue::FC_Constant, // 0x0b DW_FORM_data1
46 DWARFFormValue::FC_Flag, // 0x0c DW_FORM_flag
47 DWARFFormValue::FC_Constant, // 0x0d DW_FORM_sdata
48 DWARFFormValue::FC_String, // 0x0e DW_FORM_strp
49 DWARFFormValue::FC_Constant, // 0x0f DW_FORM_udata
50 DWARFFormValue::FC_Reference, // 0x10 DW_FORM_ref_addr
51 DWARFFormValue::FC_Reference, // 0x11 DW_FORM_ref1
52 DWARFFormValue::FC_Reference, // 0x12 DW_FORM_ref2
53 DWARFFormValue::FC_Reference, // 0x13 DW_FORM_ref4
54 DWARFFormValue::FC_Reference, // 0x14 DW_FORM_ref8
55 DWARFFormValue::FC_Reference, // 0x15 DW_FORM_ref_udata
56 DWARFFormValue::FC_Indirect, // 0x16 DW_FORM_indirect
57 DWARFFormValue::FC_SectionOffset, // 0x17 DW_FORM_sec_offset
58 DWARFFormValue::FC_Exprloc, // 0x18 DW_FORM_exprloc
59 DWARFFormValue::FC_Flag, // 0x19 DW_FORM_flag_present
60 DWARFFormValue::FC_String, // 0x1a DW_FORM_strx
61 DWARFFormValue::FC_Address, // 0x1b DW_FORM_addrx
62 DWARFFormValue::FC_Reference, // 0x1c DW_FORM_ref_sup4
63 DWARFFormValue::FC_String, // 0x1d DW_FORM_strp_sup
64 DWARFFormValue::FC_Constant, // 0x1e DW_FORM_data16
65 DWARFFormValue::FC_String, // 0x1f DW_FORM_line_strp
66 DWARFFormValue::FC_Reference, // 0x20 DW_FORM_ref_sig8
67 DWARFFormValue::FC_Constant, // 0x21 DW_FORM_implicit_const
68 DWARFFormValue::FC_SectionOffset, // 0x22 DW_FORM_loclistx
69 DWARFFormValue::FC_SectionOffset, // 0x23 DW_FORM_rnglistx
70 DWARFFormValue::FC_Reference, // 0x24 DW_FORM_ref_sup8
71 DWARFFormValue::FC_String, // 0x25 DW_FORM_strx1
72 DWARFFormValue::FC_String, // 0x26 DW_FORM_strx2
73 DWARFFormValue::FC_String, // 0x27 DW_FORM_strx3
74 DWARFFormValue::FC_String, // 0x28 DW_FORM_strx4
75 DWARFFormValue::FC_Address, // 0x29 DW_FORM_addrx1
76 DWARFFormValue::FC_Address, // 0x2a DW_FORM_addrx2
77 DWARFFormValue::FC_Address, // 0x2b DW_FORM_addrx3
78 DWARFFormValue::FC_Address, // 0x2c DW_FORM_addrx4
79 DWARFFormValue::FC_Address, // 0x2001 DW_FORM_addrx_offset
82 DWARFFormValue DWARFFormValue::createFromSValue(dwarf::Form F, int64_t V) { in createFromSValue()
83 return DWARFFormValue(F, ValueType(V)); in createFromSValue()
86 DWARFFormValue DWARFFormValue::createFromUValue(dwarf::Form F, uint64_t V) { in createFromUValue()
87 return DWARFFormValue(F, ValueType(V)); in createFromUValue()
90 DWARFFormValue DWARFFormValue::createFromPValue(dwarf::Form F, const char *V) { in createFromPValue()
91 return DWARFFormValue(F, ValueType(V)); in createFromPValue()
94 DWARFFormValue DWARFFormValue::createFromBlockValue(dwarf::Form F, in createFromBlockValue()
99 return DWARFFormValue(F, V); in createFromBlockValue()
102 DWARFFormValue DWARFFormValue::createFromUnit(dwarf::Form F, const DWARFUnit *U, in createFromUnit()
104 DWARFFormValue FormValue(F); in createFromUnit()
110 bool DWARFFormValue::skipValue(dwarf::Form Form, DataExtractor DebugInfoData, in skipValue()
216 bool DWARFFormValue::isFormClass(DWARFFormValue::FormClass FC) const { in isFormClass()
220 bool DWARFFormValue::extractValue(const DWARFDataExtractor &Data, in extractValue()
353 void DWARFFormValue::dumpAddress(raw_ostream &OS, uint8_t AddressSize, in dumpAddress()
359 void DWARFFormValue::dumpSectionedAddress(raw_ostream &OS, in dumpSectionedAddress()
367 void DWARFFormValue::dumpAddressSection(const DWARFObject &Obj, raw_ostream &OS, in dumpAddressSection()
382 void DWARFFormValue::dump(raw_ostream &OS, DIDumpOptions DumpOpts) const { in dump()
582 void DWARFFormValue::dumpString(raw_ostream &OS) const { in dumpString()
591 Expected<const char *> DWARFFormValue::getAsCString() const { in getAsCString()
634 std::optional<uint64_t> DWARFFormValue::getAsAddress() const { in getAsAddress()
640 std::optional<object::SectionedAddress> DWARFFormValue::getAsSectionedAddress( in getAsSectionedAddress()
664 DWARFFormValue::getAsSectionedAddress() const { in getAsSectionedAddress()
668 std::optional<uint64_t> DWARFFormValue::getAsReference() const { in getAsReference()
674 std::optional<DWARFFormValue::UnitOffset>
675 DWARFFormValue::getAsRelativeReference() const { in getAsRelativeReference()
696 std::optional<uint64_t> DWARFFormValue::getAsSectionOffset() const { in getAsSectionOffset()
702 std::optional<uint64_t> DWARFFormValue::getAsUnsignedConstant() const { in getAsUnsignedConstant()
709 std::optional<int64_t> DWARFFormValue::getAsSignedConstant() const { in getAsSignedConstant()
728 std::optional<ArrayRef<uint8_t>> DWARFFormValue::getAsBlock() const { in getAsBlock()
735 std::optional<uint64_t> DWARFFormValue::getAsCStringOffset() const { in getAsCStringOffset()
741 std::optional<uint64_t> DWARFFormValue::getAsReferenceUVal() const { in getAsReferenceUVal()
748 DWARFFormValue::getAsFile(DILineInfoSpecifier::FileLineInfoKind Kind) const { in getAsFile()
761 bool llvm::dwarf::doesFormBelongToClass(dwarf::Form Form, DWARFFormValue::FormClass FC, in doesFormBelongToClass()
770 return (FC == DWARFFormValue::FC_Reference); in doesFormBelongToClass()
772 return (FC == DWARFFormValue::FC_Address); in doesFormBelongToClass()
775 return (FC == DWARFFormValue::FC_String); in doesFormBelongToClass()
777 return (FC == DWARFFormValue::FC_Address); in doesFormBelongToClass()
780 return (FC == DWARFFormValue::FC_SectionOffset); in doesFormBelongToClass()
785 return (FC == DWARFFormValue::FC_SectionOffset) && (DwarfVersion <= 3); in doesFormBelongToClass()