Lines Matching refs:Section

63   MCSectionWasm *Section;  member
75 MCSection *Section; member
124 MCSectionWasm *Section; member
129 WasmCustomSection(StringRef Name, MCSectionWasm *Section) in WasmCustomSection()
130 : Name(Name), Section(Section) {} in WasmCustomSection()
257 void startSection(SectionBookkeeping &Section, unsigned SectionId);
258 void startCustomSection(SectionBookkeeping &Section, StringRef Name);
259 void endSection(SectionBookkeeping &Section);
369 void WasmObjectWriter::startSection(SectionBookkeeping &Section, in startSection() argument
374 Section.SizeOffset = W->OS.tell(); in startSection()
381 Section.ContentsOffset = W->OS.tell(); in startSection()
382 Section.PayloadOffset = W->OS.tell(); in startSection()
383 Section.Index = SectionCount++; in startSection()
408 void WasmObjectWriter::startCustomSection(SectionBookkeeping &Section, in startCustomSection() argument
411 startSection(Section, wasm::WASM_SEC_CUSTOM); in startCustomSection()
414 Section.PayloadOffset = W->OS.tell(); in startCustomSection()
425 Section.ContentsOffset = W->OS.tell(); in startCustomSection()
430 void WasmObjectWriter::endSection(SectionBookkeeping &Section) { in endSection() argument
437 Size -= Section.PayloadOffset; in endSection()
446 Section.SizeOffset); in endSection()
686 const auto &Section = in getProvisionalValue() local
688 return Section.getSectionOffset() + RelEntry.Addend; in getProvisionalValue()
829 SectionBookkeeping Section; in writeTypeSection() local
830 startSection(Section, wasm::WASM_SEC_TYPE); in writeTypeSection()
844 endSection(Section); in writeTypeSection()
855 SectionBookkeeping Section; in writeImportSection() local
856 startSection(Section, wasm::WASM_SEC_IMPORT); in writeImportSection()
890 endSection(Section); in writeImportSection()
897 SectionBookkeeping Section; in writeFunctionSection() local
898 startSection(Section, wasm::WASM_SEC_FUNCTION); in writeFunctionSection()
904 endSection(Section); in writeFunctionSection()
911 SectionBookkeeping Section; in writeTagSection() local
912 startSection(Section, wasm::WASM_SEC_TAG); in writeTagSection()
920 endSection(Section); in writeTagSection()
927 SectionBookkeeping Section; in writeGlobalSection() local
928 startSection(Section, wasm::WASM_SEC_GLOBAL); in writeGlobalSection()
961 endSection(Section); in writeGlobalSection()
968 SectionBookkeeping Section; in writeTableSection() local
969 startSection(Section, wasm::WASM_SEC_TABLE); in writeTableSection()
979 endSection(Section); in writeTableSection()
986 SectionBookkeeping Section; in writeExportSection() local
987 startSection(Section, wasm::WASM_SEC_EXPORT); in writeExportSection()
996 endSection(Section); in writeExportSection()
1006 SectionBookkeeping Section; in writeElemSection() local
1007 startSection(Section, wasm::WASM_SEC_ELEM); in writeElemSection()
1036 endSection(Section); in writeElemSection()
1043 SectionBookkeeping Section; in writeDataCountSection() local
1044 startSection(Section, wasm::WASM_SEC_DATACOUNT); in writeDataCountSection()
1046 endSection(Section); in writeDataCountSection()
1055 SectionBookkeeping Section; in writeCodeSection() local
1056 startSection(Section, wasm::WASM_SEC_CODE); in writeCodeSection()
1061 auto *FuncSection = static_cast<MCSectionWasm *>(Func.Section); in writeCodeSection()
1065 FuncSection->setSectionOffset(W->OS.tell() - Section.ContentsOffset); in writeCodeSection()
1070 applyRelocations(CodeRelocations, Section.ContentsOffset, Layout); in writeCodeSection()
1072 endSection(Section); in writeCodeSection()
1073 return Section.Index; in writeCodeSection()
1080 SectionBookkeeping Section; in writeDataSection() local
1081 startSection(Section, wasm::WASM_SEC_DATA); in writeDataSection()
1096 Segment.Section->setSectionOffset(W->OS.tell() - Section.ContentsOffset); in writeDataSection()
1101 applyRelocations(DataRelocations, Section.ContentsOffset, Layout); in writeDataSection()
1103 endSection(Section); in writeDataSection()
1104 return Section.Index; in writeDataSection()
1127 SectionBookkeeping Section; in writeRelocSection() local
1128 startCustomSection(Section, std::string("reloc.") + Name.str()); in writeRelocSection()
1144 endSection(Section); in writeRelocSection()
1149 auto &Relocations = CustomSectionsRelocations[Sec.Section]; in writeCustomRelocSections()
1158 SectionBookkeeping Section; in writeLinkingMetaDataSection() local
1159 startCustomSection(Section, "linking"); in writeLinkingMetaDataSection()
1236 endSection(Section); in writeLinkingMetaDataSection()
1242 SectionBookkeeping Section; in writeCustomSection() local
1243 auto *Sec = CustomSection.Section; in writeCustomSection()
1244 startCustomSection(Section, CustomSection.Name); in writeCustomSection()
1246 Sec->setSectionOffset(W->OS.tell() - Section.ContentsOffset); in writeCustomSection()
1249 CustomSection.OutputContentsOffset = Section.ContentsOffset; in writeCustomSection()
1250 CustomSection.OutputIndex = Section.Index; in writeCustomSection()
1252 endSection(Section); in writeCustomSection()
1255 auto &Relocations = CustomSectionsRelocations[CustomSection.Section]; in writeCustomSection()
1480 auto &Section = static_cast<MCSectionWasm &>(Sec); in writeOneObject() local
1481 StringRef SectionName = Section.getName(); in writeOneObject()
1489 << Section.getGroup() << "\n";); in writeOneObject()
1496 if (Section.getKind().isText()) in writeOneObject()
1499 if (Section.isWasmData()) { in writeOneObject()
1501 DataSize = alignTo(DataSize, Section.getAlign()); in writeOneObject()
1505 Segment.InitFlags = Section.getPassive() in writeOneObject()
1509 Segment.Section = &Section; in writeOneObject()
1510 addData(Segment.Data, Section); in writeOneObject()
1511 Segment.Alignment = Log2(Section.getAlign()); in writeOneObject()
1512 Segment.LinkingFlags = Section.getSegmentFlags(); in writeOneObject()
1514 Section.setSegmentIndex(SegmentIndex); in writeOneObject()
1516 if (const MCSymbolWasm *C = Section.getGroup()) { in writeOneObject()
1538 ProducersSection = std::make_unique<WasmCustomSection>(Name, &Section); in writeOneObject()
1543 std::make_unique<WasmCustomSection>(Name, &Section); in writeOneObject()
1551 if (const MCSymbolWasm *C = Section.getGroup()) { in writeOneObject()
1557 CustomSections.emplace_back(Name, &Section); in writeOneObject()
1595 Func.Section = &WS.getSection(); in writeOneObject()
1600 auto &Section = static_cast<MCSectionWasm &>(WS.getSection()); in writeOneObject() local
1601 if (const MCSymbolWasm *C = Section.getGroup()) { in writeOneObject()