Lines Matching +full:0 +full:ms

3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
105 MS = TheTarget->createAsmStreamer(
112 MS = TheTarget->createMCObjectStreamer(
120 if (!MS)
133 Asm.reset(TheTarget->createAsmPrinter(*TM, std::unique_ptr<MCStreamer>(MS)));
140 RangesSectionSize = 0;
141 RngListsSectionSize = 0;
142 LocSectionSize = 0;
143 LocListsSectionSize = 0;
144 LineSectionSize = 0;
145 FrameSectionSize = 0;
146 DebugInfoSectionSize = 0;
147 MacInfoSectionSize = 0;
148 MacroSectionSize = 0;
153 void DwarfStreamer::finish() { MS->finish(); }
156 MS->switchSection(MOFI->getDwarfInfoSection());
195 Asm->emitInt32(0);
200 Asm->emitInt32(0);
214 MS->switchSection(MOFI->getDwarfAbbrevSection());
221 MS->switchSection(MOFI->getDwarfInfoSection());
233 MS->switchSection(Section);
235 MS->emitBytes(SecData);
301 Asm->emitInt8(0);
324 MS->emitInt16(5);
328 MS->emitInt16(0);
346 Asm->emitInt8(0);
357 unsigned Id = 0;
417 MS->switchSection(SwiftASTSection);
418 MS->emitBytes(Buffer);
429 MS->switchSection(ReflectionSection);
430 MS->emitBytes(Buffer);
438 MS->switchSection(MC->getObjectFileInfo()->getDwarfARangesSection());
459 Asm->emitInt8(0); // Segment size
461 Asm->OutStreamer->emitFill(Padding, 0x0);
465 MS->emitIntValue(Range.start(), AddressSize);
466 MS->emitIntValue(Range.end() - Range.start(), AddressSize);
470 Asm->OutStreamer->emitIntValue(0, AddressSize);
471 Asm->OutStreamer->emitIntValue(0, AddressSize);
481 MS->switchSection(MC->getObjectFileInfo()->getDwarfRangesSection());
485 uint64_t BaseAddress = 0;
490 MS->emitIntValue(Range.start() - BaseAddress, AddressSize);
491 MS->emitIntValue(Range.end() - BaseAddress, AddressSize);
498 MS->emitIntValue(0, AddressSize);
499 MS->emitIntValue(0, AddressSize);
511 MS->switchSection(MC->getObjectFileInfo()->getDwarfRnglistsSection());
523 MS->emitInt16(5);
527 MS->emitInt8(AddressSize);
531 MS->emitInt8(0);
535 MS->emitInt32(0);
558 MS->switchSection(MC->getObjectFileInfo()->getDwarfRnglistsSection());
570 MS->switchSection(MC->getObjectFileInfo()->getDwarfRnglistsSection());
579 MS->emitInt8(dwarf::DW_RLE_base_addressx);
582 MS->emitULEB128IntValue(AddrPool.getValueIndex(*BaseAddress));
586 MS->emitInt8(dwarf::DW_RLE_offset_pair);
591 MS->emitULEB128IntValue(Range.start() - *BaseAddress);
594 RngListsSectionSize += MS->emitULEB128IntValue(Range.end() - *BaseAddress);
598 MS->emitInt8(dwarf::DW_RLE_end_of_list);
608 MS->switchSection(MC->getObjectFileInfo()->getDwarfLoclistsSection());
620 MS->emitInt16(5);
624 MS->emitInt8(AddressSize);
628 MS->emitInt8(0);
632 MS->emitInt32(0);
659 MS->switchSection(MC->getObjectFileInfo()->getDwarfLoclistsSection());
673 MS->switchSection(MC->getObjectFileInfo()->getDwarfLocSection());
677 uint64_t BaseAddress = 0;
684 MS->emitIntValue(LocExpression.Range->LowPC - BaseAddress, AddressSize);
685 MS->emitIntValue(LocExpression.Range->HighPC - BaseAddress, AddressSize);
698 MS->emitIntValue(0, AddressSize);
699 MS->emitIntValue(0, AddressSize);
709 MS->switchSection(MC->getObjectFileInfo()->getDwarfAddrSection());
729 Asm->emitInt8(0);
750 MS->switchSection(MC->getObjectFileInfo()->getDwarfAddrSection());
764 MS->switchSection(MC->getObjectFileInfo()->getDwarfLoclistsSection());
776 MS->emitInt8(dwarf::DW_LLE_base_addressx);
779 MS->emitULEB128IntValue(AddrPool.getValueIndex(*BaseAddress));
783 MS->emitInt8(dwarf::DW_LLE_offset_pair);
788 MS->emitULEB128IntValue(LocExpression.Range->LowPC - *BaseAddress);
792 MS->emitULEB128IntValue(LocExpression.Range->HighPC - *BaseAddress);
795 MS->emitInt8(dwarf::DW_LLE_default_location);
799 LocListsSectionSize += MS->emitULEB128IntValue(LocExpression.Expr.size());
806 MS->emitInt8(dwarf::DW_LLE_end_of_list);
814 MS->switchSection(MC->getObjectFileInfo()->getDwarfLineSection());
821 MS->emitInt32(dwarf::DW_LENGTH_DWARF64);
843 MS->emitInt16(P.getVersion());
847 MS->emitInt8(P.getAddressSize());
851 MS->emitInt8(P.SegSelectorSize);
871 MS->emitInt8(0);
881 LineSectionSize += MS->emitULEB128IntValue(File.DirIdx);
883 // of last modification for the file, or 0 if not available.
884 LineSectionSize += MS->emitULEB128IntValue(File.ModTime);
886 // or 0 if not available.
887 LineSectionSize += MS->emitULEB128IntValue(File.Length);
890 MS->emitInt8(0);
899 MS->emitInt8(0);
903 MS->emitInt8(1);
907 LineSectionSize += MS->emitULEB128IntValue(dwarf::DW_LNCT_path);
909 MS->emitULEB128IntValue(P.IncludeDirectories[0].getForm());
913 LineSectionSize += MS->emitULEB128IntValue(P.IncludeDirectories.size());
923 MS->emitInt8(0);
927 MS->emitInt8(2 + (HasChecksums ? 1 : 0) + (HasInlineSources ? 1 : 0));
931 auto StrForm = P.FileNames[0].Name.getForm();
932 LineSectionSize += MS->emitULEB128IntValue(dwarf::DW_LNCT_path);
933 LineSectionSize += MS->emitULEB128IntValue(StrForm);
935 LineSectionSize += MS->emitULEB128IntValue(dwarf::DW_LNCT_directory_index);
936 LineSectionSize += MS->emitULEB128IntValue(dwarf::DW_FORM_data1);
939 LineSectionSize += MS->emitULEB128IntValue(dwarf::DW_LNCT_MD5);
940 LineSectionSize += MS->emitULEB128IntValue(dwarf::DW_FORM_data16);
944 LineSectionSize += MS->emitULEB128IntValue(dwarf::DW_LNCT_LLVM_source);
945 LineSectionSize += MS->emitULEB128IntValue(StrForm);
950 LineSectionSize += MS->emitULEB128IntValue(P.FileNames.size());
955 MS->emitInt8(File.DirIdx);
958 MS->emitBinaryData(
982 Asm->emitInt8(0);
1004 MS->emitInt8(P.MinInstLength);
1008 MS->emitInt8(P.MaxOpsPerInst);
1012 MS->emitInt8(P.DefaultIsStmt);
1015 MS->emitInt8(P.LineBase);
1018 MS->emitInt8(P.LineRange);
1021 MS->emitInt8(P.OpcodeBase);
1026 MS->emitInt8(Length);
1050 // We only have the dummy entry, dsymutil emits an entry with a 0
1052 MCDwarfLineAddr::encode(*MC, Params, std::numeric_limits<int64_t>::max(), 0,
1054 MS->emitBytes(EncodingBuffer);
1056 MS->emitLabel(LineEndSym);
1063 unsigned Column = 0;
1064 unsigned Discriminator = 0;
1066 unsigned Isa = 0;
1069 unsigned RowsSinceLastSequence = 0;
1074 MS->emitIntValue(dwarf::DW_LNS_extended_op, 1);
1075 MS->emitULEB128IntValue(AddressByteSize + 1);
1076 MS->emitIntValue(dwarf::DW_LNE_set_address, 1);
1077 MS->emitIntValue(Row.Address.Address, AddressByteSize);
1080 AddressDelta = 0;
1093 MS->emitIntValue(dwarf::DW_LNS_set_file, 1);
1094 MS->emitULEB128IntValue(FileNum);
1099 MS->emitIntValue(dwarf::DW_LNS_set_column, 1);
1100 MS->emitULEB128IntValue(Column);
1104 MS->getContext().getDwarfVersion() >= 4) {
1107 MS->emitIntValue(dwarf::DW_LNS_extended_op, 1);
1108 MS->emitULEB128IntValue(Size + 1);
1109 MS->emitIntValue(dwarf::DW_LNE_set_discriminator, 1);
1110 MS->emitULEB128IntValue(Discriminator);
1114 Discriminator = 0;
1118 MS->emitIntValue(dwarf::DW_LNS_set_isa, 1);
1119 MS->emitULEB128IntValue(Isa);
1124 MS->emitIntValue(dwarf::DW_LNS_negate_stmt, 1);
1128 MS->emitIntValue(dwarf::DW_LNS_set_basic_block, 1);
1133 MS->emitIntValue(dwarf::DW_LNS_set_prologue_end, 1);
1138 MS->emitIntValue(dwarf::DW_LNS_set_epilogue_begin, 1);
1146 MS->emitBytes(EncodingBuffer);
1148 EncodingBuffer.resize(0);
1154 MS->emitIntValue(dwarf::DW_LNS_advance_line, 1);
1155 MS->emitSLEB128IntValue(LineDelta);
1159 MS->emitIntValue(dwarf::DW_LNS_advance_pc, 1);
1160 MS->emitULEB128IntValue(AddressDelta);
1164 0, EncodingBuffer);
1165 MS->emitBytes(EncodingBuffer);
1167 EncodingBuffer.resize(0);
1170 RowsSinceLastSequence = Column = Discriminator = Isa = 0;
1175 MCDwarfLineAddr::encode(*MC, Params, std::numeric_limits<int64_t>::max(), 0,
1177 MS->emitBytes(EncodingBuffer);
1179 EncodingBuffer.resize(0);
1182 MS->emitLabel(LineEndSym);
1188 MS->emitIntValue(Offset, Size);
1233 Asm->emitInt8(0);
1238 Asm->emitInt32(0); // End marker.
1256 MS->switchSection(MC->getObjectFileInfo()->getDwarfFrameSection());
1258 MS->emitBytes(CIEBytes);
1267 MS->switchSection(MC->getObjectFileInfo()->getDwarfFrameSection());
1269 MS->emitIntValue(FDEBytes.size() + 4 + AddrSize, 4);
1270 MS->emitIntValue(CIEOffset, 4);
1271 MS->emitIntValue(Address, AddrSize);
1272 MS->emitBytes(FDEBytes);
1283 MS->switchSection(MC->getObjectFileInfo()->getDwarfMacinfoSection());
1289 MS->switchSection(MC->getObjectFileInfo()->getDwarfMacroSection());
1305 "couldn`t find compile unit for the macro table with offset = {0:x}",
1332 MS->emitIntValue(List.Header.Version, sizeof(List.Header.Version));
1362 MS->emitIntValue(Flags, sizeof(Flags));
1367 MS->emitIntValue(*StmtListOffset, List.Header.getOffsetByteSize());
1374 if (MacroEntry.Type == 0) {
1375 OutOffset += MS->emitULEB128IntValue(MacroEntry.Type);
1389 MS->emitIntValue(MacroType, 1);
1393 OutOffset += MS->emitULEB128IntValue(MacroEntry.ExtConstant);
1397 MS->emitBytes(String);
1398 MS->emitIntValue(0, 1);
1412 MS->emitIntValue(MacroType, 1);
1416 OutOffset += MS->emitULEB128IntValue(MacroEntry.Line);
1420 MS->emitBytes(String);
1421 MS->emitIntValue(0, 1);
1455 MS->emitIntValue(MacroType, 1);
1459 OutOffset += MS->emitULEB128IntValue(MacroEntry.Line);
1464 MS->emitIntValue(EntryRef.getOffset(), List.Header.getOffsetByteSize());
1470 MS->emitIntValue(MacroType, 1);
1473 OutOffset += MS->emitULEB128IntValue(MacroEntry.Line);
1475 OutOffset += MS->emitULEB128IntValue(MacroEntry.File);
1479 MS->emitIntValue(MacroType, 1);