Lines Matching refs:Asm
133 Asm.reset(TheTarget->createAsmPrinter(*TM, std::unique_ptr<MCStreamer>(MS))); in init()
134 if (!Asm) in init()
138 Asm->setDwarfUsesRelocationsAcrossSections(false); in init()
181 Unit.setLabelBegin(Asm->createTempSymbol("cu_begin")); in emitCompileUnitHeader()
182 Asm->OutStreamer->emitLabel(Unit.getLabelBegin()); in emitCompileUnitHeader()
187 Asm->emitInt32(Unit.getNextUnitOffset() - Unit.getStartOffset() - 4); in emitCompileUnitHeader()
188 Asm->emitInt16(DwarfVersion); in emitCompileUnitHeader()
191 Asm->emitInt8(dwarf::DW_UT_compile); in emitCompileUnitHeader()
192 Asm->emitInt8(Unit.getOrigUnit().getAddressByteSize()); in emitCompileUnitHeader()
195 Asm->emitInt32(0); in emitCompileUnitHeader()
200 Asm->emitInt32(0); in emitCompileUnitHeader()
201 Asm->emitInt8(Unit.getOrigUnit().getAddressByteSize()); in emitCompileUnitHeader()
216 Asm->emitDwarfAbbrevs(Abbrevs); in emitAbbrevs()
222 Asm->emitDwarfDIE(Die); in emitDIE()
295 Asm->OutStreamer->switchSection(MOFI->getDwarfStrSection()); in emitStrings()
299 Asm->OutStreamer->emitBytes(Entry.getString()); in emitStrings()
301 Asm->emitInt8(0); in emitStrings()
313 Asm->OutStreamer->switchSection(MOFI->getDwarfStrOffSection()); in emitStringOffsets()
315 MCSymbol *BeginLabel = Asm->createTempSymbol("Bdebugstroff"); in emitStringOffsets()
316 MCSymbol *EndLabel = Asm->createTempSymbol("Edebugstroff"); in emitStringOffsets()
319 Asm->emitLabelDifference(EndLabel, BeginLabel, sizeof(uint32_t)); in emitStringOffsets()
320 Asm->OutStreamer->emitLabel(BeginLabel); in emitStringOffsets()
332 Asm->OutStreamer->emitInt32(Off); in emitStringOffsets()
335 Asm->OutStreamer->emitLabel(EndLabel); in emitStringOffsets()
340 Asm->OutStreamer->switchSection(MOFI->getDwarfLineStrSection()); in emitLineStrings()
344 Asm->OutStreamer->emitBytes(Entry.getString()); in emitLineStrings()
346 Asm->emitInt8(0); in emitLineStrings()
364 Asm->OutStreamer->switchSection(MOFI->getDwarfDebugNamesSection()); in emitDebugNames()
371 Asm.get(), Table, CompUnits, in emitDebugNames()
383 Asm->OutStreamer->switchSection(MOFI->getDwarfAccelNamespaceSection()); in emitAppleNamespaces()
384 auto *SectionBegin = Asm->createTempSymbol("namespac_begin"); in emitAppleNamespaces()
385 Asm->OutStreamer->emitLabel(SectionBegin); in emitAppleNamespaces()
386 emitAppleAccelTable(Asm.get(), Table, "namespac", SectionBegin); in emitAppleNamespaces()
391 Asm->OutStreamer->switchSection(MOFI->getDwarfAccelNamesSection()); in emitAppleNames()
392 auto *SectionBegin = Asm->createTempSymbol("names_begin"); in emitAppleNames()
393 Asm->OutStreamer->emitLabel(SectionBegin); in emitAppleNames()
394 emitAppleAccelTable(Asm.get(), Table, "names", SectionBegin); in emitAppleNames()
399 Asm->OutStreamer->switchSection(MOFI->getDwarfAccelObjCSection()); in emitAppleObjc()
400 auto *SectionBegin = Asm->createTempSymbol("objc_begin"); in emitAppleObjc()
401 Asm->OutStreamer->emitLabel(SectionBegin); in emitAppleObjc()
402 emitAppleAccelTable(Asm.get(), Table, "objc", SectionBegin); in emitAppleObjc()
407 Asm->OutStreamer->switchSection(MOFI->getDwarfAccelTypesSection()); in emitAppleTypes()
408 auto *SectionBegin = Asm->createTempSymbol("types_begin"); in emitAppleTypes()
409 Asm->OutStreamer->emitLabel(SectionBegin); in emitAppleTypes()
410 emitAppleAccelTable(Asm.get(), Table, "types", SectionBegin); in emitAppleTypes()
441 MCSymbol *BeginLabel = Asm->createTempSymbol("Barange"); in emitDwarfDebugArangesTable()
442 MCSymbol *EndLabel = Asm->createTempSymbol("Earange"); in emitDwarfDebugArangesTable()
454 Asm->emitLabelDifference(EndLabel, BeginLabel, 4); // Arange length in emitDwarfDebugArangesTable()
455 Asm->OutStreamer->emitLabel(BeginLabel); in emitDwarfDebugArangesTable()
456 Asm->emitInt16(dwarf::DW_ARANGES_VERSION); // Version number in emitDwarfDebugArangesTable()
457 Asm->emitInt32(Unit.getStartOffset()); // Corresponding unit's offset in emitDwarfDebugArangesTable()
458 Asm->emitInt8(AddressSize); // Address size in emitDwarfDebugArangesTable()
459 Asm->emitInt8(0); // Segment size in emitDwarfDebugArangesTable()
461 Asm->OutStreamer->emitFill(Padding, 0x0); in emitDwarfDebugArangesTable()
470 Asm->OutStreamer->emitIntValue(0, AddressSize); in emitDwarfDebugArangesTable()
471 Asm->OutStreamer->emitIntValue(0, AddressSize); in emitDwarfDebugArangesTable()
472 Asm->OutStreamer->emitLabel(EndLabel); in emitDwarfDebugArangesTable()
513 MCSymbol *BeginLabel = Asm->createTempSymbol("Brnglists"); in emitDwarfDebugRangeListHeader()
514 MCSymbol *EndLabel = Asm->createTempSymbol("Ernglists"); in emitDwarfDebugRangeListHeader()
518 Asm->emitLabelDifference(EndLabel, BeginLabel, sizeof(uint32_t)); in emitDwarfDebugRangeListHeader()
519 Asm->OutStreamer->emitLabel(BeginLabel); in emitDwarfDebugRangeListHeader()
561 Asm->OutStreamer->emitLabel(EndLabel); in emitDwarfDebugRangeListFooter()
610 MCSymbol *BeginLabel = Asm->createTempSymbol("Bloclists"); in emitDwarfDebugLocListHeader()
611 MCSymbol *EndLabel = Asm->createTempSymbol("Eloclists"); in emitDwarfDebugLocListHeader()
615 Asm->emitLabelDifference(EndLabel, BeginLabel, sizeof(uint32_t)); in emitDwarfDebugLocListHeader()
616 Asm->OutStreamer->emitLabel(BeginLabel); in emitDwarfDebugLocListHeader()
662 Asm->OutStreamer->emitLabel(EndLabel); in emitDwarfDebugLocListFooter()
691 Asm->OutStreamer->emitIntValue(LocExpression.Expr.size(), 2); in emitDwarfDebugLocTableFragment()
692 Asm->OutStreamer->emitBytes(StringRef( in emitDwarfDebugLocTableFragment()
711 MCSymbol *BeginLabel = Asm->createTempSymbol("Bdebugaddr"); in emitDwarfDebugAddrsHeader()
712 MCSymbol *EndLabel = Asm->createTempSymbol("Edebugaddr"); in emitDwarfDebugAddrsHeader()
716 Asm->emitLabelDifference(EndLabel, BeginLabel, sizeof(uint32_t)); in emitDwarfDebugAddrsHeader()
717 Asm->OutStreamer->emitLabel(BeginLabel); in emitDwarfDebugAddrsHeader()
721 Asm->emitInt16(5); in emitDwarfDebugAddrsHeader()
725 Asm->emitInt8(AddrSize); in emitDwarfDebugAddrsHeader()
729 Asm->emitInt8(0); in emitDwarfDebugAddrsHeader()
738 Asm->OutStreamer->switchSection(MOFI->getDwarfAddrSection()); in emitDwarfDebugAddrs()
740 Asm->OutStreamer->emitIntValue(Addr, AddrSize); in emitDwarfDebugAddrs()
753 Asm->OutStreamer->emitLabel(EndLabel); in emitDwarfDebugAddrsFooter()
800 Asm->OutStreamer->emitBytes(StringRef( in emitDwarfDebugLocListsTableFragment()
826 Asm->OutStreamer->emitLabel(LineStartSym); in emitLineTableForUnit()
859 Asm->OutStreamer->emitLabel(PrologueStartSym); in emitLineTablePrologue()
861 Asm->OutStreamer->emitLabel(PrologueEndSym); in emitLineTablePrologue()
981 Asm->OutStreamer->emitBytes(Str.data()); in emitLineTableString()
982 Asm->emitInt8(0); in emitLineTableString()
1196 Asm->emitLabelDifference(Hi, Lo, Size); in emitLabelDifference()
1209 Asm->OutStreamer->switchSection(Sec); in emitPubSectionForUnit()
1210 MCSymbol *BeginLabel = Asm->createTempSymbol("pub" + SecName + "_begin"); in emitPubSectionForUnit()
1211 MCSymbol *EndLabel = Asm->createTempSymbol("pub" + SecName + "_end"); in emitPubSectionForUnit()
1221 Asm->emitLabelDifference(EndLabel, BeginLabel, 4); // Length in emitPubSectionForUnit()
1222 Asm->OutStreamer->emitLabel(BeginLabel); in emitPubSectionForUnit()
1223 Asm->emitInt16(dwarf::DW_PUBNAMES_VERSION); // Version in emitPubSectionForUnit()
1224 Asm->emitInt32(Unit.getStartOffset()); // Unit offset in emitPubSectionForUnit()
1225 Asm->emitInt32(Unit.getNextUnitOffset() - Unit.getStartOffset()); // Size in emitPubSectionForUnit()
1228 Asm->emitInt32(Name.Die->getOffset()); in emitPubSectionForUnit()
1231 Asm->OutStreamer->emitBytes(Name.Name.getString()); in emitPubSectionForUnit()
1233 Asm->emitInt8(0); in emitPubSectionForUnit()
1238 Asm->emitInt32(0); // End marker. in emitPubSectionForUnit()
1239 Asm->OutStreamer->emitLabel(EndLabel); in emitPubSectionForUnit()