Lines Matching refs:Asm

122   : Asm(A), MMI(Asm->MMI), FirstCU(0),
144 return Entry.first = Asm->GetTempSymbol("string", Entry.second);
237 Asm->GetTempSymbol("func_begin", Asm->getFunctionNumber()));
239 Asm->GetTempSymbol("func_end", Asm->getFunctionNumber()));
240 const TargetRegisterInfo *RI = Asm->TM.getRegisterInfo();
241 MachineLocation Location(RI->getFrameRegister(*Asm->MF));
267 * Asm->getTargetData().getPointerSize());
335 * Asm->getTargetData().getPointerSize());
461 Asm->OutStreamer.EmitDwarfFileDirective(SrcId, Entry.getKey());
475 CompileUnit *NewCU = new CompileUnit(ID, Die, Asm, this);
486 if(Asm->MAI->doesDwarfRequireRelocationForSectionOffset())
488 Asm->GetTempSymbol("section_line"));
650 SectionMap.insert(Asm->getObjFileLowering().getTextSection());
710 Asm->OutStreamer.SwitchSection(Asm->getObjFileLowering().getTextSection());
711 Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("text_end"));
712 Asm->OutStreamer.SwitchSection(Asm->getObjFileLowering().getDataSection());
713 Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("data_end"));
717 Asm->OutStreamer.SwitchSection(SectionMap[i]);
718 Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("section_end", i));
848 static DotDebugLocEntry getDebugLocEntry(AsmPrinter *Asm,
855 MachineLocation MLoc = Asm->getDebugValueLocation(MI);
967 DotDebugLocEntries.push_back(getDebugLocEntry(Asm, FLabel, SLabel, Begin));
1009 const MDNode *Scope = DL.getScope(Asm->MF->getFunction()->getContext());
1030 Asm->OutStreamer.EmitLabel(PrevLabel);
1056 Asm->OutStreamer.EmitLabel(PrevLabel);
1119 FunctionBeginSym = Asm->GetTempSymbol("func_begin",
1120 Asm->getFunctionNumber());
1122 Asm->OutStreamer.EmitLabel(FunctionBeginSym);
1126 const TargetRegisterInfo *TRI = Asm->TM.getRegisterInfo();
1296 FunctionEndSym = Asm->GetTempSymbol("func_end",
1297 Asm->getFunctionNumber());
1299 Asm->OutStreamer.EmitLabel(FunctionEndSym);
1334 DebugFrames.push_back(FunctionDebugFrameInfo(Asm->getFunctionNumber(),
1387 Asm->OutStreamer.EmitDwarfLocDirective(Src, Line, Col, Flags, 0, 0, Fn);
1424 Offset += Values[i]->SizeOf(Asm, AbbrevData[i].getForm());
1459 static MCSymbol *EmitSectionSym(AsmPrinter *Asm, const MCSection *Section,
1461 Asm->OutStreamer.SwitchSection(Section);
1464 MCSymbol *TmpSym = Asm->GetTempSymbol(SymbolStem);
1465 Asm->OutStreamer.EmitLabel(TmpSym);
1472 const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering();
1476 EmitSectionSym(Asm, TLOF.getDwarfInfoSection(), "section_info");
1478 EmitSectionSym(Asm, TLOF.getDwarfAbbrevSection(), "section_abbrev");
1479 EmitSectionSym(Asm, TLOF.getDwarfARangesSection());
1482 EmitSectionSym(Asm, MacroInfo);
1484 EmitSectionSym(Asm, TLOF.getDwarfLineSection(), "section_line");
1485 EmitSectionSym(Asm, TLOF.getDwarfLocSection());
1486 EmitSectionSym(Asm, TLOF.getDwarfPubNamesSection());
1487 EmitSectionSym(Asm, TLOF.getDwarfPubTypesSection());
1489 EmitSectionSym(Asm, TLOF.getDwarfStrSection(), "section_str");
1490 DwarfDebugRangeSectionSym = EmitSectionSym(Asm, TLOF.getDwarfRangesSection(),
1493 DwarfDebugLocSectionSym = EmitSectionSym(Asm, TLOF.getDwarfLocSection(),
1496 TextSectionSym = EmitSectionSym(Asm, TLOF.getTextSection(), "text_begin");
1497 EmitSectionSym(Asm, TLOF.getDataSection());
1508 if (Asm->isVerbose())
1509 Asm->OutStreamer.AddComment("Abbrev [" + Twine(AbbrevNumber) + "] 0x" +
1513 Asm->EmitULEB128(AbbrevNumber);
1524 if (Asm->isVerbose())
1525 Asm->OutStreamer.AddComment(dwarf::AttributeString(Attr));
1529 Asm->EmitInt32(Die->getSiblingOffset());
1535 Asm->EmitInt32(Addr);
1542 if (Asm->MAI->doesDwarfUsesLabelOffsetForRanges()) {
1543 Asm->EmitLabelPlusOffset(DwarfDebugRangeSectionSym,
1547 Asm->EmitLabelOffsetDifference(DwarfDebugRangeSectionSym,
1556 Asm->EmitLabelDifference(L->getValue(), DwarfDebugLocSectionSym, 4);
1558 Values[i]->EmitValue(Asm, Form);
1562 if (Asm->isVerbose()) {
1564 Asm->OutStreamer.AddComment(dwarf::AccessibilityString(V->getValue()));
1566 Values[i]->EmitValue(Asm, Form);
1571 Values[i]->EmitValue(Asm, Form);
1583 if (Asm->isVerbose())
1584 Asm->OutStreamer.AddComment("End Of Children Mark");
1585 Asm->EmitInt8(0);
1593 Asm->OutStreamer.SwitchSection(
1594 Asm->getObjFileLowering().getDwarfInfoSection());
1601 Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("info_begin",
1610 Asm->OutStreamer.AddComment("Length of Compilation Unit Info");
1611 Asm->EmitInt32(ContentSize);
1612 Asm->OutStreamer.AddComment("DWARF version number");
1613 Asm->EmitInt16(dwarf::DWARF_VERSION);
1614 Asm->OutStreamer.AddComment("Offset Into Abbrev. Section");
1615 Asm->EmitSectionOffset(Asm->GetTempSymbol("abbrev_begin"),
1617 Asm->OutStreamer.AddComment("Address Size (in bytes)");
1618 Asm->EmitInt8(Asm->getTargetData().getPointerSize());
1621 Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("info_end", TheCU->getID()));
1631 Asm->OutStreamer.SwitchSection(
1632 Asm->getObjFileLowering().getDwarfAbbrevSection());
1634 Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("abbrev_begin"));
1642 Asm->EmitULEB128(Abbrev->getNumber(), "Abbreviation Code");
1645 Abbrev->Emit(Asm);
1649 Asm->EmitULEB128(0, "EOM(3)");
1651 Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("abbrev_end"));
1660 Asm->OutStreamer.AddComment("Extended Op");
1661 Asm->EmitInt8(0);
1663 Asm->OutStreamer.AddComment("Op size");
1664 Asm->EmitInt8(Asm->getTargetData().getPointerSize() + 1);
1665 Asm->OutStreamer.AddComment("DW_LNE_set_address");
1666 Asm->EmitInt8(dwarf::DW_LNE_set_address);
1668 Asm->OutStreamer.AddComment("Section end label");
1670 Asm->OutStreamer.EmitSymbolValue(Asm->GetTempSymbol("section_end",SectionEnd),
1671 Asm->getTargetData().getPointerSize(),
1675 Asm->OutStreamer.AddComment("DW_LNE_end_sequence");
1676 Asm->EmitInt8(0);
1677 Asm->EmitInt8(1);
1678 Asm->EmitInt8(1);
1688 Asm->OutStreamer.SwitchSection(
1689 Asm->getObjFileLowering().getDwarfPubNamesSection());
1691 Asm->OutStreamer.AddComment("Length of Public Names Info");
1692 Asm->EmitLabelDifference(
1693 Asm->GetTempSymbol("pubnames_end", TheCU->getID()),
1694 Asm->GetTempSymbol("pubnames_begin", TheCU->getID()), 4);
1696 Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("pubnames_begin",
1699 Asm->OutStreamer.AddComment("DWARF Version");
1700 Asm->EmitInt16(dwarf::DWARF_VERSION);
1702 Asm->OutStreamer.AddComment("Offset of Compilation Unit Info");
1703 Asm->EmitSectionOffset(Asm->GetTempSymbol("info_begin", TheCU->getID()),
1706 Asm->OutStreamer.AddComment("Compilation Unit Length");
1707 Asm->EmitLabelDifference(Asm->GetTempSymbol("info_end", TheCU->getID()),
1708 Asm->GetTempSymbol("info_begin", TheCU->getID()),
1717 Asm->OutStreamer.AddComment("DIE offset");
1718 Asm->EmitInt32(Entity->getOffset());
1720 if (Asm->isVerbose())
1721 Asm->OutStreamer.AddComment("External Name");
1722 Asm->OutStreamer.EmitBytes(StringRef(Name, strlen(Name)+1), 0);
1725 Asm->OutStreamer.AddComment("End Mark");
1726 Asm->EmitInt32(0);
1727 Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("pubnames_end",
1737 Asm->OutStreamer.SwitchSection(
1738 Asm->getObjFileLowering().getDwarfPubTypesSection());
1739 Asm->OutStreamer.AddComment("Length of Public Types Info");
1740 Asm->EmitLabelDifference(
1741 Asm->GetTempSymbol("pubtypes_end", TheCU->getID()),
1742 Asm->GetTempSymbol("pubtypes_begin", TheCU->getID()), 4);
1744 Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("pubtypes_begin",
1747 if (Asm->isVerbose()) Asm->OutStreamer.AddComment("DWARF Version");
1748 Asm->EmitInt16(dwarf::DWARF_VERSION);
1750 Asm->OutStreamer.AddComment("Offset of Compilation Unit Info");
1751 Asm->EmitSectionOffset(Asm->GetTempSymbol("info_begin", TheCU->getID()),
1754 Asm->OutStreamer.AddComment("Compilation Unit Length");
1755 Asm->EmitLabelDifference(Asm->GetTempSymbol("info_end", TheCU->getID()),
1756 Asm->GetTempSymbol("info_begin", TheCU->getID()),
1765 if (Asm->isVerbose()) Asm->OutStreamer.AddComment("DIE offset");
1766 Asm->EmitInt32(Entity->getOffset());
1768 if (Asm->isVerbose()) Asm->OutStreamer.AddComment("External Name");
1769 Asm->OutStreamer.EmitBytes(StringRef(Name, GI->getKeyLength()+1), 0);
1772 Asm->OutStreamer.AddComment("End Mark");
1773 Asm->EmitInt32(0);
1774 Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("pubtypes_end",
1786 Asm->OutStreamer.SwitchSection(
1787 Asm->getObjFileLowering().getDwarfStrSection());
1802 Asm->OutStreamer.EmitLabel(Entries[i].second->getValue().first);
1805 Asm->OutStreamer.EmitBytes(Entries[i].second->getKey(), 0/*addrspace*/);
1824 Asm->OutStreamer.SwitchSection(
1825 Asm->getObjFileLowering().getDwarfLocSection());
1826 unsigned char Size = Asm->getTargetData().getPointerSize();
1827 Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("debug_loc", 0));
1835 Asm->OutStreamer.EmitIntValue(0, Size, /*addrspace*/0);
1836 Asm->OutStreamer.EmitIntValue(0, Size, /*addrspace*/0);
1837 Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("debug_loc", index));
1839 Asm->OutStreamer.EmitSymbolValue(Entry.Begin, Size, 0);
1840 Asm->OutStreamer.EmitSymbolValue(Entry.End, Size, 0);
1842 Asm->OutStreamer.AddComment("Loc expr size");
1843 MCSymbol *begin = Asm->OutStreamer.getContext().CreateTempSymbol();
1844 MCSymbol *end = Asm->OutStreamer.getContext().CreateTempSymbol();
1845 Asm->EmitLabelDifference(end, begin, 2);
1846 Asm->OutStreamer.EmitLabel(begin);
1852 Asm->OutStreamer.AddComment("DW_OP_consts");
1853 Asm->EmitInt8(dwarf::DW_OP_consts);
1854 Asm->EmitSLEB128(Entry.getInt());
1856 Asm->OutStreamer.AddComment("DW_OP_constu");
1857 Asm->EmitInt8(dwarf::DW_OP_constu);
1858 Asm->EmitULEB128(Entry.getInt());
1863 Asm->EmitDwarfRegOp(Entry.Loc);
1871 Asm->EmitDwarfRegOp(Entry.Loc);
1872 Asm->OutStreamer.AddComment("DW_OP_deref");
1873 Asm->EmitInt8(dwarf::DW_OP_deref);
1874 Asm->OutStreamer.AddComment("DW_OP_plus_uconst");
1875 Asm->EmitInt8(dwarf::DW_OP_plus_uconst);
1876 Asm->EmitSLEB128(DV.getAddrElement(1));
1881 Asm->EmitDwarfRegOp(Loc);
1885 Asm->EmitDwarfRegOp(Entry.Loc);
1892 Asm->EmitInt8(dwarf::DW_OP_plus_uconst);
1893 Asm->EmitULEB128(DV.getAddrElement(++i));
1895 Asm->EmitInt8(dwarf::DW_OP_deref);
1902 Asm->OutStreamer.EmitLabel(end);
1911 Asm->OutStreamer.SwitchSection(
1912 Asm->getObjFileLowering().getDwarfARangesSection());
1919 Asm->OutStreamer.SwitchSection(
1920 Asm->getObjFileLowering().getDwarfRangesSection());
1921 unsigned char Size = Asm->getTargetData().getPointerSize();
1926 Asm->OutStreamer.EmitSymbolValue(const_cast<MCSymbol*>(*I), Size, 0);
1928 Asm->OutStreamer.EmitIntValue(0, Size, /*addrspace*/0);
1936 Asm->getObjFileLowering().getDwarfMacroInfoSection()) {
1938 Asm->OutStreamer.SwitchSection(LineInfo);
1961 if (!Asm->MAI->doesDwarfUsesInlineInfoSection())
1967 Asm->OutStreamer.SwitchSection(
1968 Asm->getObjFileLowering().getDwarfDebugInlineSection());
1970 Asm->OutStreamer.AddComment("Length of Debug Inlined Information Entry");
1971 Asm->EmitLabelDifference(Asm->GetTempSymbol("debug_inlined_end", 1),
1972 Asm->GetTempSymbol("debug_inlined_begin", 1), 4);
1974 Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("debug_inlined_begin", 1));
1976 Asm->OutStreamer.AddComment("Dwarf Version");
1977 Asm->EmitInt16(dwarf::DWARF_VERSION);
1978 Asm->OutStreamer.AddComment("Address Size (in bytes)");
1979 Asm->EmitInt8(Asm->getTargetData().getPointerSize());
1992 Asm->OutStreamer.AddComment("MIPS linkage name");
1994 Asm->OutStreamer.EmitBytes(Name, 0);
1995 Asm->OutStreamer.EmitIntValue(0, 1, 0); // nul terminator.
1997 Asm->EmitSectionOffset(getStringPoolEntry(getRealLinkageName(LName)),
2000 Asm->OutStreamer.AddComment("Function name");
2001 Asm->EmitSectionOffset(getStringPoolEntry(Name), DwarfStrSectionSym);
2002 Asm->EmitULEB128(Labels.size(), "Inline count");
2006 if (Asm->isVerbose()) Asm->OutStreamer.AddComment("DIE offset");
2007 Asm->EmitInt32(LI->second->getOffset());
2009 if (Asm->isVerbose()) Asm->OutStreamer.AddComment("low_pc");
2010 Asm->OutStreamer.EmitSymbolValue(LI->first,
2011 Asm->getTargetData().getPointerSize(),0);
2015 Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("debug_inlined_end", 1));