Home
last modified time | relevance | path

Searched refs:FormValue (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVDWARFReader.cpp37 const DWARFFormValue &FormValue = in processOneAttribute() local
45 if (std::optional<uint64_t> Val = FormValue.getAsUnsignedConstant()) in processOneAttribute()
50 auto GetFlag = [](const DWARFFormValue &FormValue) -> bool { in processOneAttribute() argument
51 return FormValue.isFormClass(DWARFFormValue::FC_Flag); in processOneAttribute()
54 auto GetBoundValue = [&AttrSpec](const DWARFFormValue &FormValue) -> int64_t { in processOneAttribute() argument
55 switch (FormValue.getForm()) { in processOneAttribute()
63 return *FormValue.getAsReferenceUVal(); in processOneAttribute()
72 return *FormValue.getAsUnsignedConstant(); in processOneAttribute()
74 return *FormValue.getAsSignedConstant(); in processOneAttribute()
109 CompileUnit->setCompilationDirectory(dwarf::toStringRef(FormValue)); in processOneAttribute()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFDie.cpp72 static void dumpLocationList(raw_ostream &OS, const DWARFFormValue &FormValue, in dumpLocationList() argument
75 assert(FormValue.isFormClass(DWARFFormValue::FC_SectionOffset) && in dumpLocationList()
78 uint64_t Offset = *FormValue.getAsSectionOffset(); in dumpLocationList()
80 if (FormValue.getForm() == DW_FORM_loclistx) { in dumpLocationList()
81 FormValue.dump(OS, DumpOpts); in dumpLocationList()
92 static void dumpLocationExpr(raw_ostream &OS, const DWARFFormValue &FormValue, in dumpLocationExpr() argument
95 assert((FormValue.isFormClass(DWARFFormValue::FC_Block) || in dumpLocationExpr()
96 FormValue.isFormClass(DWARFFormValue::FC_Exprloc)) && in dumpLocationExpr()
99 ArrayRef<uint8_t> Expr = *FormValue.getAsBlock(); in dumpLocationExpr()
126 const DWARFFormValue &FormValue = AttrValue.Value; in dumpAttribute() local
[all …]
H A DDWARFAcceleratorTable.cpp109 DWARFFormValue FormValue(Atom.second); in validateForms() local
114 if ((!FormValue.isFormClass(DWARFFormValue::FC_Constant) && in validateForms()
115 !FormValue.isFormClass(DWARFFormValue::FC_Flag)) || in validateForms()
116 FormValue.getForm() == dwarf::DW_FORM_sdata) in validateForms()
132 DWARFFormValue FormValue(Atom.second); in readAtoms() local
133 FormValue.extractValue(AccelSection, HashDataOffset, FormParams); in readAtoms()
136 DieOffset = *FormValue.getAsUnsignedConstant(); in readAtoms()
139 DieTag = (dwarf::Tag)*FormValue.getAsUnsignedConstant(); in readAtoms()
278 for (auto &FormValue : Values) in extract() local
279 FormValue.extractValue(Table.AccelSection, Offset, Table.FormParams); in extract()
[all …]
H A DDWARFAbbreviationDeclaration.cpp199 DWARFFormValue FormValue(Spec.Form); in getAttributeValueFromOffset() local
201 if (FormValue.extractValue(DebugInfoData, &Offset, U.getFormParams(), &U)) in getAttributeValueFromOffset()
202 return FormValue; in getAttributeValueFromOffset()
H A DDWARFFormValue.cpp104 DWARFFormValue FormValue(F); in createFromUnit() local
105 FormValue.extractValue(U->getDebugInfoExtractor(), OffsetPtr, in createFromUnit()
107 return FormValue; in createFromUnit()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DDWARFYAML.cpp243 void MappingTraits<DWARFYAML::FormValue>::mapping( in mapping()
244 IO &IO, DWARFYAML::FormValue &FormValue) { in mapping() argument
245 IO.mapOptional("Value", FormValue.Value); in mapping()
246 if (!FormValue.CStr.empty() || !IO.outputting()) in mapping()
247 IO.mapOptional("CStr", FormValue.CStr); in mapping()
248 if (!FormValue.BlockData.empty() || !IO.outputting()) in mapping()
249 IO.mapOptional("BlockData", FormValue.BlockData); in mapping()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Readers/
H A DLVDWARFReader.h102 const DWARFFormValue &FormValue,
105 const DWARFFormValue &FormValue, const DWARFDie &Die,
108 void updateReference(dwarf::Attribute Attr, const DWARFFormValue &FormValue);
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DDWARFYAML.h94 struct FormValue { struct
102 std::vector<FormValue> Values; argument
287 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::DWARFYAML::FormValue) in LLVM_YAML_IS_SEQUENCE_VECTOR()
374 template <> struct MappingTraits<DWARFYAML::FormValue> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
375 LLVM_ABI static void mapping(IO &IO, DWARFYAML::FormValue &FormValue); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFAcceleratorTable.h506 void dumpParentIdx(ScopedPrinter &W, const DWARFFormValue &FormValue) const;