Lines Matching refs:Asm

103   Asm.reset(TheTarget->createAsmPrinter(*TM, std::unique_ptr<MCStreamer>(MS)));  in init()
104 if (!Asm) in init()
144 Unit.setLabelBegin(Asm->createTempSymbol("cu_begin")); in emitCompileUnitHeader()
145 Asm->OutStreamer->emitLabel(Unit.getLabelBegin()); in emitCompileUnitHeader()
150 Asm->emitInt32(Unit.getNextUnitOffset() - Unit.getStartOffset() - 4); in emitCompileUnitHeader()
151 Asm->emitInt16(DwarfVersion); in emitCompileUnitHeader()
154 Asm->emitInt8(dwarf::DW_UT_compile); in emitCompileUnitHeader()
155 Asm->emitInt8(Unit.getOrigUnit().getAddressByteSize()); in emitCompileUnitHeader()
158 Asm->emitInt32(0); in emitCompileUnitHeader()
163 Asm->emitInt32(0); in emitCompileUnitHeader()
164 Asm->emitInt8(Unit.getOrigUnit().getAddressByteSize()); in emitCompileUnitHeader()
179 Asm->emitDwarfAbbrevs(Abbrevs); in emitAbbrevs()
185 Asm->emitDwarfDIE(Die); in emitDIE()
212 auto &Asm = getAsmPrinter(); in emitPaperTrailWarningsDie() local
213 Asm.emitInt32(11 + Die.getSize() - 4); in emitPaperTrailWarningsDie()
214 Asm.emitInt16(2); in emitPaperTrailWarningsDie()
215 Asm.emitInt32(0); in emitPaperTrailWarningsDie()
216 Asm.emitInt8(MC->getTargetTriple().isArch64Bit() ? 8 : 4); in emitPaperTrailWarningsDie()
223 Asm->OutStreamer->switchSection(MOFI->getDwarfStrSection()); in emitStrings()
227 Asm->OutStreamer->emitBytes(Entry.getString()); in emitStrings()
229 Asm->emitInt8(0); in emitStrings()
235 Asm->OutStreamer->switchSection(MOFI->getDwarfStrOffSection()); in emitStrings()
236 Asm->emitDwarfUnitLength(4, "Length of String Offsets Set"); in emitStrings()
237 Asm->emitInt16(DwarfVersion); in emitStrings()
238 Asm->emitInt16(0); in emitStrings()
258 Asm->OutStreamer->switchSection(MOFI->getDwarfDebugNamesSection()); in emitDebugNames()
260 Asm.get(), Table, CompUnits, in emitDebugNames()
268 Asm->OutStreamer->switchSection(MOFI->getDwarfAccelNamespaceSection()); in emitAppleNamespaces()
269 auto *SectionBegin = Asm->createTempSymbol("namespac_begin"); in emitAppleNamespaces()
270 Asm->OutStreamer->emitLabel(SectionBegin); in emitAppleNamespaces()
271 emitAppleAccelTable(Asm.get(), Table, "namespac", SectionBegin); in emitAppleNamespaces()
276 Asm->OutStreamer->switchSection(MOFI->getDwarfAccelNamesSection()); in emitAppleNames()
277 auto *SectionBegin = Asm->createTempSymbol("names_begin"); in emitAppleNames()
278 Asm->OutStreamer->emitLabel(SectionBegin); in emitAppleNames()
279 emitAppleAccelTable(Asm.get(), Table, "names", SectionBegin); in emitAppleNames()
284 Asm->OutStreamer->switchSection(MOFI->getDwarfAccelObjCSection()); in emitAppleObjc()
285 auto *SectionBegin = Asm->createTempSymbol("objc_begin"); in emitAppleObjc()
286 Asm->OutStreamer->emitLabel(SectionBegin); in emitAppleObjc()
287 emitAppleAccelTable(Asm.get(), Table, "objc", SectionBegin); in emitAppleObjc()
292 Asm->OutStreamer->switchSection(MOFI->getDwarfAccelTypesSection()); in emitAppleTypes()
293 auto *SectionBegin = Asm->createTempSymbol("types_begin"); in emitAppleTypes()
294 Asm->OutStreamer->emitLabel(SectionBegin); in emitAppleTypes()
295 emitAppleAccelTable(Asm.get(), Table, "types", SectionBegin); in emitAppleTypes()
383 MCSymbol *BeginLabel = Asm->createTempSymbol("Barange"); in emitUnitRangesEntries()
384 MCSymbol *EndLabel = Asm->createTempSymbol("Earange"); in emitUnitRangesEntries()
396 Asm->emitLabelDifference(EndLabel, BeginLabel, 4); // Arange length in emitUnitRangesEntries()
397 Asm->OutStreamer->emitLabel(BeginLabel); in emitUnitRangesEntries()
398 Asm->emitInt16(dwarf::DW_ARANGES_VERSION); // Version number in emitUnitRangesEntries()
399 Asm->emitInt32(Unit.getStartOffset()); // Corresponding unit's offset in emitUnitRangesEntries()
400 Asm->emitInt8(AddressSize); // Address size in emitUnitRangesEntries()
401 Asm->emitInt8(0); // Segment size in emitUnitRangesEntries()
403 Asm->OutStreamer->emitFill(Padding, 0x0); in emitUnitRangesEntries()
415 Asm->OutStreamer->emitIntValue(0, AddressSize); in emitUnitRangesEntries()
416 Asm->OutStreamer->emitIntValue(0, AddressSize); in emitUnitRangesEntries()
417 Asm->OutStreamer->emitLabel(EndLabel); in emitUnitRangesEntries()
478 Asm->OutStreamer->emitIntValue(0, AddressSize); in emitLocationsForUnit()
479 Asm->OutStreamer->emitIntValue(0, AddressSize); in emitLocationsForUnit()
484 Asm->OutStreamer->emitIntValue(BaseAddressMarker, AddressSize); in emitLocationsForUnit()
485 Asm->OutStreamer->emitIntValue(High + Attr.second, AddressSize); in emitLocationsForUnit()
490 Asm->OutStreamer->emitIntValue(Low + LocPcOffset, AddressSize); in emitLocationsForUnit()
491 Asm->OutStreamer->emitIntValue(High + LocPcOffset, AddressSize); in emitLocationsForUnit()
493 Asm->OutStreamer->emitIntValue(Length, 2); in emitLocationsForUnit()
499 Asm->OutStreamer->emitBytes( in emitLocationsForUnit()
519 Asm->emitLabelDifference(LineEndSym, LineStartSym, 4); in emitLineTableForUnit()
520 Asm->OutStreamer->emitLabel(LineStartSym); in emitLineTableForUnit()
672 Asm->emitLabelDifference(EndLabel, BeginLabel, 4); in translateLineTable()
673 Asm->OutStreamer->emitLabel(BeginLabel); in translateLineTable()
674 Asm->emitInt16(Version); in translateLineTable()
679 Asm->emitLabelDifference(HeaderEndLabel, HeaderBeginLabel, 4); in translateLineTable()
680 Asm->OutStreamer->emitLabel(HeaderBeginLabel); in translateLineTable()
689 Asm->OutStreamer->emitBytes(Contents.slice(AfterHeaderLengthOffset, Offset)); in translateLineTable()
698 Asm->OutStreamer->emitBytes(Translated); in translateLineTable()
699 Asm->emitInt8(0); in translateLineTable()
702 Asm->emitInt8(0); in translateLineTable()
710 Asm->OutStreamer->emitBytes(Translated); in translateLineTable()
711 Asm->emitInt8(0); in translateLineTable()
715 Asm->emitULEB128(Data.getULEB128(&Offset)); in translateLineTable()
716 Asm->emitULEB128(Data.getULEB128(&Offset)); in translateLineTable()
717 Asm->emitULEB128(Data.getULEB128(&Offset)); in translateLineTable()
720 Asm->emitInt8(0); in translateLineTable()
723 Asm->OutStreamer->emitLabel(HeaderEndLabel); in translateLineTable()
726 Asm->OutStreamer->emitBytes(Contents.slice(Offset, UnitEnd)); in translateLineTable()
729 Asm->OutStreamer->emitLabel(EndLabel); in translateLineTable()
742 Asm->OutStreamer->switchSection(Sec); in emitPubSectionForUnit()
743 MCSymbol *BeginLabel = Asm->createTempSymbol("pub" + SecName + "_begin"); in emitPubSectionForUnit()
744 MCSymbol *EndLabel = Asm->createTempSymbol("pub" + SecName + "_end"); in emitPubSectionForUnit()
754 Asm->emitLabelDifference(EndLabel, BeginLabel, 4); // Length in emitPubSectionForUnit()
755 Asm->OutStreamer->emitLabel(BeginLabel); in emitPubSectionForUnit()
756 Asm->emitInt16(dwarf::DW_PUBNAMES_VERSION); // Version in emitPubSectionForUnit()
757 Asm->emitInt32(Unit.getStartOffset()); // Unit offset in emitPubSectionForUnit()
758 Asm->emitInt32(Unit.getNextUnitOffset() - Unit.getStartOffset()); // Size in emitPubSectionForUnit()
761 Asm->emitInt32(Name.Die->getOffset()); in emitPubSectionForUnit()
764 Asm->OutStreamer->emitBytes(Name.Name.getString()); in emitPubSectionForUnit()
766 Asm->emitInt8(0); in emitPubSectionForUnit()
771 Asm->emitInt32(0); // End marker. in emitPubSectionForUnit()
772 Asm->OutStreamer->emitLabel(EndLabel); in emitPubSectionForUnit()