Lines Matching refs:AP

64 void DIEAbbrev::Emit(const AsmPrinter *AP) const {  in Emit()
66 AP->EmitULEB128(Tag, dwarf::TagString(Tag)); in Emit()
69 AP->EmitULEB128((unsigned)Children, dwarf::ChildrenString(Children)); in Emit()
76 AP->EmitULEB128(AttrData.getAttribute(), in Emit()
80 AP->EmitULEB128(AttrData.getForm(), in Emit()
85 AP->EmitULEB128(0, "EOM(1)"); in Emit()
86 AP->EmitULEB128(0, "EOM(2)"); in Emit()
194 void DIEValue::EmitValue(const AsmPrinter *AP) const { in EmitValue()
200 getDIE##T().EmitValue(AP, Form); \ in EmitValue()
206 unsigned DIEValue::SizeOf(const AsmPrinter *AP) const { in SizeOf()
212 return getDIE##T().SizeOf(AP, Form); in SizeOf()
279 unsigned DIEInteger::SizeOf(const AsmPrinter *AP, dwarf::Form Form) const { in SizeOf() argument
299 return AP->getPointerSize(); in SizeOf()
301 if (AP->OutStreamer->getContext().getDwarfVersion() == 2) in SizeOf()
302 return AP->getPointerSize(); in SizeOf()
320 void DIEExpr::EmitValue(const AsmPrinter *AP, dwarf::Form Form) const { in EmitValue() argument
321 AP->OutStreamer->EmitValue(Expr, SizeOf(AP, Form)); in EmitValue()
326 unsigned DIEExpr::SizeOf(const AsmPrinter *AP, dwarf::Form Form) const { in SizeOf() argument
330 return AP->getPointerSize(); in SizeOf()
342 void DIELabel::EmitValue(const AsmPrinter *AP, dwarf::Form Form) const { in EmitValue() argument
343 AP->EmitLabelReference(Label, SizeOf(AP, Form), in EmitValue()
351 unsigned DIELabel::SizeOf(const AsmPrinter *AP, dwarf::Form Form) const { in SizeOf() argument
355 return AP->getPointerSize(); in SizeOf()
367 void DIEDelta::EmitValue(const AsmPrinter *AP, dwarf::Form Form) const { in EmitValue() argument
368 AP->EmitLabelDifference(LabelHi, LabelLo, SizeOf(AP, Form)); in EmitValue()
373 unsigned DIEDelta::SizeOf(const AsmPrinter *AP, dwarf::Form Form) const { in SizeOf() argument
377 return AP->getPointerSize(); in SizeOf()
391 void DIEString::EmitValue(const AsmPrinter *AP, dwarf::Form Form) const { in EmitValue() argument
398 DIEInteger(S.getIndex()).EmitValue(AP, Form); in EmitValue()
404 if (AP->MAI->doesDwarfUseRelocationsAcrossSections()) { in EmitValue()
405 DIELabel(S.getSymbol()).EmitValue(AP, Form); in EmitValue()
410 DIEInteger(S.getOffset()).EmitValue(AP, Form); in EmitValue()
415 unsigned DIEString::SizeOf(const AsmPrinter *AP, dwarf::Form Form) const { in SizeOf() argument
422 return DIEInteger(S.getIndex()).SizeOf(AP, Form); in SizeOf()
425 if (AP->MAI->doesDwarfUseRelocationsAcrossSections()) in SizeOf()
426 return DIELabel(S.getSymbol()).SizeOf(AP, Form); in SizeOf()
429 return DIEInteger(S.getOffset()).SizeOf(AP, Form); in SizeOf()
443 void DIEEntry::EmitValue(const AsmPrinter *AP, dwarf::Form Form) const { in EmitValue() argument
446 const DwarfDebug *DD = AP->getDwarfDebug(); in EmitValue()
455 if (AP->MAI->doesDwarfUseRelocationsAcrossSections()) in EmitValue()
456 AP->EmitLabelPlusOffset(CU->getSectionSym(), Addr, in EmitValue()
457 DIEEntry::getRefAddrSize(AP)); in EmitValue()
459 AP->OutStreamer->EmitIntValue(Addr, DIEEntry::getRefAddrSize(AP)); in EmitValue()
461 AP->EmitInt32(Entry->getOffset()); in EmitValue()
464 unsigned DIEEntry::getRefAddrSize(const AsmPrinter *AP) { in getRefAddrSize() argument
469 const DwarfDebug *DD = AP->getDwarfDebug(); in getRefAddrSize()
472 return AP->getPointerSize(); in getRefAddrSize()
487 unsigned DIELoc::ComputeSize(const AsmPrinter *AP) const { in ComputeSize()
490 Size += V.SizeOf(AP); in ComputeSize()
515 unsigned DIELoc::SizeOf(const AsmPrinter *AP, dwarf::Form Form) const { in SizeOf() argument
538 unsigned DIEBlock::ComputeSize(const AsmPrinter *AP) const { in ComputeSize()
541 Size += V.SizeOf(AP); in ComputeSize()
564 unsigned DIEBlock::SizeOf(const AsmPrinter *AP, dwarf::Form Form) const { in SizeOf() argument
583 unsigned DIELocList::SizeOf(const AsmPrinter *AP, dwarf::Form Form) const { in SizeOf() argument
588 return AP->getPointerSize(); in SizeOf()
593 void DIELocList::EmitValue(const AsmPrinter *AP, dwarf::Form Form) const { in EmitValue() argument
594 DwarfDebug *DD = AP->getDwarfDebug(); in EmitValue()
596 AP->emitDwarfSymbolReference(Label, /*ForceOffset*/ DD->useSplitDwarf()); in EmitValue()