Lines Matching refs:Form
82 DWARFFormValue DWARFFormValue::createFromSValue(dwarf::Form F, int64_t V) { in createFromSValue()
86 DWARFFormValue DWARFFormValue::createFromUValue(dwarf::Form F, uint64_t V) { in createFromUValue()
90 DWARFFormValue DWARFFormValue::createFromPValue(dwarf::Form F, const char *V) { in createFromPValue()
94 DWARFFormValue DWARFFormValue::createFromBlockValue(dwarf::Form F, in createFromBlockValue()
102 DWARFFormValue DWARFFormValue::createFromUnit(dwarf::Form F, const DWARFUnit *U, in createFromUnit()
110 bool DWARFFormValue::skipValue(dwarf::Form Form, DataExtractor DebugInfoData, in skipValue() argument
115 switch (Form) { in skipValue()
177 dwarf::getFixedFormByteSize(Form, Params)) { in skipValue()
206 Form = static_cast<dwarf::Form>(DebugInfoData.getULEB128(OffsetPtr)); in skipValue()
217 return doesFormBelongToClass(Form, FC, U ? U->getVersion() : 3); in isFormClass()
237 switch (Form) { in extractValue()
241 (Form == DW_FORM_addr) ? FP.AddrSize : FP.getRefAddrByteSize(); in extractValue()
318 Form = static_cast<dwarf::Form>(Data.getULEB128(OffsetPtr, &Err)); in extractValue()
389 switch (Form) { in dump()
406 if (Form == DW_FORM_LLVM_addrx_offset) { in dump()
452 switch (Form) { in dump()
567 OS << format("DW_FORM(0x%4.4x)", Form); in dump()
595 if (Form == DW_FORM_string) in getAsCString()
598 if (Form == DW_FORM_GNU_strp_alt || C == nullptr) in getAsCString()
603 if (Form == DW_FORM_GNU_str_index || Form == DW_FORM_strx || in getAsCString()
604 Form == DW_FORM_strx1 || Form == DW_FORM_strx2 || Form == DW_FORM_strx3 || in getAsCString()
605 Form == DW_FORM_strx4) { in getAsCString()
618 bool IsDebugLineString = Form == DW_FORM_line_strp; in getAsCString()
624 std::string Msg = FormEncodingString(Form).str(); in getAsCString()
641 const ValueType &Value, const dwarf::Form Form, const DWARFUnit *U) { in getAsSectionedAddress() argument
642 if (!doesFormBelongToClass(Form, FC_Address, U ? U->getVersion() : 3)) in getAsSectionedAddress()
644 bool AddrOffset = Form == dwarf::DW_FORM_LLVM_addrx_offset; in getAsSectionedAddress()
645 if (Form == DW_FORM_GNU_addr_index || Form == DW_FORM_addrx || in getAsSectionedAddress()
646 Form == DW_FORM_addrx1 || Form == DW_FORM_addrx2 || in getAsSectionedAddress()
647 Form == DW_FORM_addrx3 || Form == DW_FORM_addrx4 || AddrOffset) { in getAsSectionedAddress()
665 return getAsSectionedAddress(Value, Form, U); in getAsSectionedAddress()
669 switch (Form) { in getAsRelativeReference()
684 if (Form == DW_FORM_ref_addr) in getAsDebugInfoReference()
690 if (Form == DW_FORM_ref_sig8) in getAsSignatureReference()
696 switch (Form) { in getAsSupplementaryReference()
714 Form == DW_FORM_sdata) in getAsUnsignedConstant()
721 (Form == DW_FORM_udata && in getAsSignedConstant()
724 switch (Form) { in getAsSignedConstant()
740 Form != DW_FORM_data16) in getAsBlock()
746 if (!isFormClass(FC_String) && Form == DW_FORM_string) in getAsCStringOffset()
771 bool llvm::dwarf::doesFormBelongToClass(dwarf::Form Form, DWARFFormValue::FormClass FC, in doesFormBelongToClass() argument
774 if (Form < std::size(DWARF5FormClasses) && DWARF5FormClasses[Form] == FC) in doesFormBelongToClass()
777 switch (Form) { in doesFormBelongToClass()