Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVELFReader.cpp250 const DWARFFormValue &FormValue = in processOneAttribute() local
257 : *FormValue.getAsUnsignedConstant(); in processOneAttribute()
260 auto GetFlag = [](const DWARFFormValue &FormValue) -> bool { in processOneAttribute() argument
261 return FormValue.isFormClass(DWARFFormValue::FC_Flag); in processOneAttribute()
264 auto GetBoundValue = [](const DWARFFormValue &FormValue) -> int64_t { in processOneAttribute() argument
265 switch (FormValue.getForm()) { in processOneAttribute()
273 return *FormValue.getAsReferenceUVal(); in processOneAttribute()
282 return *FormValue.getAsUnsignedConstant(); in processOneAttribute()
284 return *FormValue.getAsSignedConstant(); in processOneAttribute()
297 CurrentElement->setAccessibilityCode(*FormValue.getAsUnsignedConstant()); in processOneAttribute()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/DWARF/
H A DDWARFDie.cpp71 static void dumpLocationList(raw_ostream &OS, const DWARFFormValue &FormValue, in dumpLocationList() argument
74 assert(FormValue.isFormClass(DWARFFormValue::FC_SectionOffset) && in dumpLocationList()
77 uint64_t Offset = *FormValue.getAsSectionOffset(); in dumpLocationList()
79 if (FormValue.getForm() == DW_FORM_loclistx) { in dumpLocationList()
80 FormValue.dump(OS, DumpOpts); in dumpLocationList()
91 static void dumpLocationExpr(raw_ostream &OS, const DWARFFormValue &FormValue, in dumpLocationExpr() argument
94 assert((FormValue.isFormClass(DWARFFormValue::FC_Block) || in dumpLocationExpr()
95 FormValue.isFormClass(DWARFFormValue::FC_Exprloc)) && in dumpLocationExpr()
98 ArrayRef<uint8_t> Expr = *FormValue.getAsBlock(); in dumpLocationExpr()
125 const DWARFFormValue &FormValue = AttrValue.Value; in dumpAttribute() local
[all …]
H A DDWARFAbbreviationDeclaration.cpp177 DWARFFormValue FormValue(Spec.Form); in getAttributeValueFromOffset() local
179 if (FormValue.extractValue(DebugInfoData, &Offset, U.getFormParams(), &U)) in getAttributeValueFromOffset()
180 return FormValue; in getAttributeValueFromOffset()
H A DDWARFAcceleratorTable.cpp96 DWARFFormValue FormValue(Atom.second); in validateForms() local
101 if ((!FormValue.isFormClass(DWARFFormValue::FC_Constant) && in validateForms()
102 !FormValue.isFormClass(DWARFFormValue::FC_Flag)) || in validateForms()
103 FormValue.getForm() == dwarf::DW_FORM_sdata) in validateForms()
120 DWARFFormValue FormValue(Atom.second); in readAtoms() local
121 FormValue.extractValue(AccelSection, HashDataOffset, FormParams); in readAtoms()
124 DieOffset = *FormValue.getAsUnsignedConstant(); in readAtoms()
127 DieTag = (dwarf::Tag)*FormValue.getAsUnsignedConstant(); in readAtoms()
H A DDWARFFormValue.cpp104 DWARFFormValue FormValue(F); in createFromUnit() local
105 FormValue.extractValue(U->getDebugInfoExtractor(), OffsetPtr, in createFromUnit()
107 return FormValue; in createFromUnit()
/openbsd-src/gnu/llvm/llvm/tools/obj2yaml/
H A Ddwarf2yaml.cpp245 DWARFYAML::FormValue NewValue; in dumpDebugInfo()
248 auto FormValue = DIEWrapper.find(AttrSpec.Attr); in dumpDebugInfo() local
249 if (!FormValue) in dumpDebugInfo()
251 auto Form = FormValue->getForm(); in dumpDebugInfo()
258 if (auto Val = FormValue->getAsAddress()) in dumpDebugInfo()
268 if (auto Val = FormValue->getAsReferenceUVal()) in dumpDebugInfo()
276 if (auto Val = FormValue->getAsBlock()) { in dumpDebugInfo()
292 if (auto Val = FormValue->getAsUnsignedConstant()) in dumpDebugInfo()
296 if (auto Val = dwarf::toString(FormValue)) in dumpDebugInfo()
301 if (auto Val = FormValue->getAsUnsignedConstant()) { in dumpDebugInfo()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/
H A DDWARFYAML.cpp200 void MappingTraits<DWARFYAML::FormValue>::mapping( in mapping()
201 IO &IO, DWARFYAML::FormValue &FormValue) { in mapping() argument
202 IO.mapOptional("Value", FormValue.Value); in mapping()
203 if (!FormValue.CStr.empty() || !IO.outputting()) in mapping()
204 IO.mapOptional("CStr", FormValue.CStr); in mapping()
205 if (!FormValue.BlockData.empty() || !IO.outputting()) in mapping()
206 IO.mapOptional("BlockData", FormValue.BlockData); in mapping()
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/LogicalView/Readers/
H A DLVELFReader.h108 const DWARFFormValue &FormValue,
111 const DWARFFormValue &FormValue, const DWARFDie &Die,
114 void updateReference(dwarf::Attribute Attr, const DWARFFormValue &FormValue);
/openbsd-src/gnu/llvm/llvm/include/llvm/ObjectYAML/
H A DDWARFYAML.h93 struct FormValue { struct
101 std::vector<FormValue> Values; argument
260 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::DWARFYAML::FormValue) in LLVM_YAML_IS_SEQUENCE_VECTOR()
331 template <> struct MappingTraits<DWARFYAML::FormValue> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
332 static void mapping(IO &IO, DWARFYAML::FormValue &FormValue); in LLVM_YAML_IS_SEQUENCE_VECTOR()