Lines Matching defs:FormValue
250 const DWARFFormValue &FormValue =
258 if (std::optional<uint64_t> Val = FormValue.getAsUnsignedConstant())
263 auto GetFlag = [](const DWARFFormValue &FormValue) -> bool {
264 return FormValue.isFormClass(DWARFFormValue::FC_Flag);
267 auto GetBoundValue = [&AttrSpec](const DWARFFormValue &FormValue) -> int64_t {
268 switch (FormValue.getForm()) {
276 return *FormValue.getAsReferenceUVal();
285 return *FormValue.getAsUnsignedConstant();
287 return *FormValue.getAsSignedConstant();
319 CompileUnit->setCompilationDirectory(dwarf::toStringRef(FormValue));
322 if (FormValue.isFormClass(DWARFFormValue::FC_Block)) {
323 ArrayRef<uint8_t> Expr = *FormValue.getAsBlock();
327 } else if (FormValue.isFormClass(DWARFFormValue::FC_Constant)) {
330 if (FormValue.getForm() == dwarf::DW_FORM_sdata) {
332 int64_t Value = *FormValue.getAsSignedConstant();
342 CurrentElement->setValue(dwarf::toStringRef(FormValue));
356 if (GetFlag(FormValue))
360 if (GetFlag(FormValue))
370 CurrentElement->setLowerBound(GetBoundValue(FormValue));
373 CurrentElement->setName(dwarf::toStringRef(FormValue));
376 CurrentElement->setValue(dwarf::toStringRef(FormValue));
380 CurrentElement->setLinkageName(dwarf::toStringRef(FormValue));
384 CurrentElement->setProducer(dwarf::toStringRef(FormValue));
387 CurrentElement->setUpperBound(GetBoundValue(FormValue));
399 updateReference(AttrSpec.Attr, FormValue);
408 if (std::optional<uint64_t> Value = FormValue.getAsAddress()) {
411 uint64_t UValue = FormValue.getRawUValue();
413 CurrentLowPC = *FormValue.getAsAddress();
436 if (std::optional<uint64_t> Address = FormValue.getAsAddress())
439 if (std::optional<uint64_t> Offset = FormValue.getAsUnsignedConstant())
459 auto GetRanges = [](const DWARFFormValue &FormValue,
461 if (FormValue.getForm() == dwarf::DW_FORM_rnglistx)
462 return U->findRnglistFromIndex(*FormValue.getAsSectionOffset());
463 return U->findRnglistFromOffset(*FormValue.getAsSectionOffset());
466 GetRanges(FormValue, U);
500 processLocationMember(AttrSpec.Attr, FormValue, Die, OffsetOnEntry);
508 processLocationList(AttrSpec.Attr, FormValue, Die, OffsetOnEntry);
516 processLocationList(AttrSpec.Attr, FormValue, Die, OffsetOnEntry,
991 const DWARFFormValue &FormValue,
1004 if (FormValue.isFormClass(DWARFFormValue::FC_Block) ||
1006 FormValue.isFormClass(DWARFFormValue::FC_Exprloc))) {
1007 ArrayRef<uint8_t> Expr = *FormValue.getAsBlock();
1022 FormValue.isFormClass(DWARFFormValue::FC_SectionOffset)) {
1023 uint64_t Offset = *FormValue.getAsSectionOffset();
1024 if (FormValue.getForm() == dwarf::DW_FORM_loclistx) {
1072 const DWARFFormValue &FormValue,
1076 if (FormValue.isFormClass(DWARFFormValue::FC_Constant))
1078 CurrentSymbol->addLocationConstant(Attr, *FormValue.getAsUnsignedConstant(),
1082 processLocationList(Attr, FormValue, Die, OffsetOnEntry);
1087 const DWARFFormValue &FormValue) {
1092 if (std::optional<uint64_t> Off = FormValue.getAsRelativeReference())
1093 Offset = FormValue.getUnit()->getOffset() + *Off;
1094 else if (Off = FormValue.getAsDebugInfoReference(); Off)
1104 if (FormValue.getForm() == dwarf::DW_FORM_ref_addr) {