• Home
  • Raw
  • Download

Lines Matching refs:dwarf

63   AP->EmitULEB128(Tag, dwarf::TagString(Tag));  in Emit()
66 AP->EmitULEB128((unsigned)Children, dwarf::ChildrenString(Children)); in Emit()
74 dwarf::AttributeString(AttrData.getAttribute())); in Emit()
78 dwarf::FormEncodingString(AttrData.getForm())); in Emit()
91 << dwarf::TagString(Tag) in print()
93 << dwarf::ChildrenString(Children) in print()
98 << dwarf::AttributeString(Data[i].getAttribute()) in print()
100 << dwarf::FormEncodingString(Data[i].getForm()) in print()
120 if (p->getTag() == dwarf::DW_TAG_compile_unit || in getUnitOrNull()
121 p->getTag() == dwarf::DW_TAG_type_unit) in getUnitOrNull()
128 DIEValue *DIE::findAttribute(dwarf::Attribute Attribute) const { in findAttribute()
153 << dwarf::TagString(Abbrev.getTag()) in print()
155 << dwarf::ChildrenString(Abbrev.hasChildren()) << "\n"; in print()
167 O << dwarf::AttributeString(Data[i].getAttribute()); in print()
172 << dwarf::FormEncodingString(Data[i].getForm()) in print()
205 void DIEInteger::EmitValue(AsmPrinter *Asm, dwarf::Form Form) const { in EmitValue()
208 case dwarf::DW_FORM_flag_present: in EmitValue()
213 case dwarf::DW_FORM_flag: // Fall thru in EmitValue()
214 case dwarf::DW_FORM_ref1: // Fall thru in EmitValue()
215 case dwarf::DW_FORM_data1: Size = 1; break; in EmitValue()
216 case dwarf::DW_FORM_ref2: // Fall thru in EmitValue()
217 case dwarf::DW_FORM_data2: Size = 2; break; in EmitValue()
218 case dwarf::DW_FORM_sec_offset: // Fall thru in EmitValue()
219 case dwarf::DW_FORM_ref4: // Fall thru in EmitValue()
220 case dwarf::DW_FORM_data4: Size = 4; break; in EmitValue()
221 case dwarf::DW_FORM_ref8: // Fall thru in EmitValue()
222 case dwarf::DW_FORM_ref_sig8: // Fall thru in EmitValue()
223 case dwarf::DW_FORM_data8: Size = 8; break; in EmitValue()
224 case dwarf::DW_FORM_GNU_str_index: Asm->EmitULEB128(Integer); return; in EmitValue()
225 case dwarf::DW_FORM_GNU_addr_index: Asm->EmitULEB128(Integer); return; in EmitValue()
226 case dwarf::DW_FORM_udata: Asm->EmitULEB128(Integer); return; in EmitValue()
227 case dwarf::DW_FORM_sdata: Asm->EmitSLEB128(Integer); return; in EmitValue()
228 case dwarf::DW_FORM_addr: in EmitValue()
237 unsigned DIEInteger::SizeOf(AsmPrinter *AP, dwarf::Form Form) const { in SizeOf()
239 case dwarf::DW_FORM_flag_present: return 0; in SizeOf()
240 case dwarf::DW_FORM_flag: // Fall thru in SizeOf()
241 case dwarf::DW_FORM_ref1: // Fall thru in SizeOf()
242 case dwarf::DW_FORM_data1: return sizeof(int8_t); in SizeOf()
243 case dwarf::DW_FORM_ref2: // Fall thru in SizeOf()
244 case dwarf::DW_FORM_data2: return sizeof(int16_t); in SizeOf()
245 case dwarf::DW_FORM_sec_offset: // Fall thru in SizeOf()
246 case dwarf::DW_FORM_ref4: // Fall thru in SizeOf()
247 case dwarf::DW_FORM_data4: return sizeof(int32_t); in SizeOf()
248 case dwarf::DW_FORM_ref8: // Fall thru in SizeOf()
249 case dwarf::DW_FORM_ref_sig8: // Fall thru in SizeOf()
250 case dwarf::DW_FORM_data8: return sizeof(int64_t); in SizeOf()
251 case dwarf::DW_FORM_GNU_str_index: return getULEB128Size(Integer); in SizeOf()
252 case dwarf::DW_FORM_GNU_addr_index: return getULEB128Size(Integer); in SizeOf()
253 case dwarf::DW_FORM_udata: return getULEB128Size(Integer); in SizeOf()
254 case dwarf::DW_FORM_sdata: return getSLEB128Size(Integer); in SizeOf()
255 case dwarf::DW_FORM_addr: return AP->getDataLayout().getPointerSize(); in SizeOf()
273 void DIEExpr::EmitValue(AsmPrinter *AP, dwarf::Form Form) const { in EmitValue()
279 unsigned DIEExpr::SizeOf(AsmPrinter *AP, dwarf::Form Form) const { in SizeOf()
280 if (Form == dwarf::DW_FORM_data4) return 4; in SizeOf()
281 if (Form == dwarf::DW_FORM_sec_offset) return 4; in SizeOf()
282 if (Form == dwarf::DW_FORM_strp) return 4; in SizeOf()
299 void DIELabel::EmitValue(AsmPrinter *AP, dwarf::Form Form) const { in EmitValue()
301 Form == dwarf::DW_FORM_strp || in EmitValue()
302 Form == dwarf::DW_FORM_sec_offset || in EmitValue()
303 Form == dwarf::DW_FORM_ref_addr); in EmitValue()
308 unsigned DIELabel::SizeOf(AsmPrinter *AP, dwarf::Form Form) const { in SizeOf()
309 if (Form == dwarf::DW_FORM_data4) return 4; in SizeOf()
310 if (Form == dwarf::DW_FORM_sec_offset) return 4; in SizeOf()
311 if (Form == dwarf::DW_FORM_strp) return 4; in SizeOf()
327 void DIEDelta::EmitValue(AsmPrinter *AP, dwarf::Form Form) const { in EmitValue()
333 unsigned DIEDelta::SizeOf(AsmPrinter *AP, dwarf::Form Form) const { in SizeOf()
334 if (Form == dwarf::DW_FORM_data4) return 4; in SizeOf()
335 if (Form == dwarf::DW_FORM_sec_offset) return 4; in SizeOf()
336 if (Form == dwarf::DW_FORM_strp) return 4; in SizeOf()
352 void DIEString::EmitValue(AsmPrinter *AP, dwarf::Form Form) const { in EmitValue()
358 unsigned DIEString::SizeOf(AsmPrinter *AP, dwarf::Form Form) const { in SizeOf()
375 void DIEEntry::EmitValue(AsmPrinter *AP, dwarf::Form Form) const { in EmitValue()
377 if (Form == dwarf::DW_FORM_ref_addr) { in EmitValue()
419 void DIETypeSignature::EmitValue(AsmPrinter *Asm, dwarf::Form Form) const { in EmitValue()
420 assert(Form == dwarf::DW_FORM_ref_sig8); in EmitValue()
450 void DIELoc::EmitValue(AsmPrinter *Asm, dwarf::Form Form) const { in EmitValue()
453 case dwarf::DW_FORM_block1: Asm->EmitInt8(Size); break; in EmitValue()
454 case dwarf::DW_FORM_block2: Asm->EmitInt16(Size); break; in EmitValue()
455 case dwarf::DW_FORM_block4: Asm->EmitInt32(Size); break; in EmitValue()
456 case dwarf::DW_FORM_block: in EmitValue()
457 case dwarf::DW_FORM_exprloc: in EmitValue()
468 unsigned DIELoc::SizeOf(AsmPrinter *AP, dwarf::Form Form) const { in SizeOf()
470 case dwarf::DW_FORM_block1: return Size + sizeof(int8_t); in SizeOf()
471 case dwarf::DW_FORM_block2: return Size + sizeof(int16_t); in SizeOf()
472 case dwarf::DW_FORM_block4: return Size + sizeof(int32_t); in SizeOf()
473 case dwarf::DW_FORM_block: in SizeOf()
474 case dwarf::DW_FORM_exprloc: in SizeOf()
505 void DIEBlock::EmitValue(AsmPrinter *Asm, dwarf::Form Form) const { in EmitValue()
508 case dwarf::DW_FORM_block1: Asm->EmitInt8(Size); break; in EmitValue()
509 case dwarf::DW_FORM_block2: Asm->EmitInt16(Size); break; in EmitValue()
510 case dwarf::DW_FORM_block4: Asm->EmitInt32(Size); break; in EmitValue()
511 case dwarf::DW_FORM_block: Asm->EmitULEB128(Size); break; in EmitValue()
521 unsigned DIEBlock::SizeOf(AsmPrinter *AP, dwarf::Form Form) const { in SizeOf()
523 case dwarf::DW_FORM_block1: return Size + sizeof(int8_t); in SizeOf()
524 case dwarf::DW_FORM_block2: return Size + sizeof(int16_t); in SizeOf()
525 case dwarf::DW_FORM_block4: return Size + sizeof(int32_t); in SizeOf()
526 case dwarf::DW_FORM_block: return Size + getULEB128Size(Size); in SizeOf()
542 unsigned DIELocList::SizeOf(AsmPrinter *AP, dwarf::Form Form) const { in SizeOf()
543 if (Form == dwarf::DW_FORM_data4) in SizeOf()
545 if (Form == dwarf::DW_FORM_sec_offset) in SizeOf()
552 void DIELocList::EmitValue(AsmPrinter *AP, dwarf::Form Form) const { in EmitValue()