Lines Matching refs:Section

110   MCSectionWasm *Section;  member
181 MCSectionWasm *Section; member
186 WasmCustomSection(StringRef Name, MCSectionWasm *Section) in WasmCustomSection()
187 : Name(Name), Section(Section), OutputContentsOffset(0), in WasmCustomSection()
249 void startSection(SectionBookkeeping &Section, unsigned SectionId);
250 void startCustomSection(SectionBookkeeping &Section, StringRef Name);
251 void endSection(SectionBookkeeping &Section);
336 void WasmObjectWriter::startSection(SectionBookkeeping &Section, in startSection() argument
341 Section.SizeOffset = W.OS.tell(); in startSection()
348 Section.ContentsOffset = W.OS.tell(); in startSection()
349 Section.PayloadOffset = W.OS.tell(); in startSection()
350 Section.Index = SectionCount++; in startSection()
353 void WasmObjectWriter::startCustomSection(SectionBookkeeping &Section, in startCustomSection() argument
356 startSection(Section, wasm::WASM_SEC_CUSTOM); in startCustomSection()
359 Section.PayloadOffset = W.OS.tell(); in startCustomSection()
365 Section.ContentsOffset = W.OS.tell(); in startCustomSection()
370 void WasmObjectWriter::endSection(SectionBookkeeping &Section) { in endSection() argument
377 Size -= Section.PayloadOffset; in endSection()
389 Section.SizeOffset); in endSection()
601 const auto &Section = in getProvisionalValue() local
603 return Section.getSectionOffset() + RelEntry.Addend; in getProvisionalValue()
714 SectionBookkeeping Section; in writeTypeSection() local
715 startSection(Section, wasm::WASM_SEC_TYPE); in writeTypeSection()
729 endSection(Section); in writeTypeSection()
740 SectionBookkeeping Section; in writeImportSection() local
741 startSection(Section, wasm::WASM_SEC_IMPORT); in writeImportSection()
775 endSection(Section); in writeImportSection()
782 SectionBookkeeping Section; in writeFunctionSection() local
783 startSection(Section, wasm::WASM_SEC_FUNCTION); in writeFunctionSection()
789 endSection(Section); in writeFunctionSection()
796 SectionBookkeeping Section; in writeGlobalSection() local
797 startSection(Section, wasm::WASM_SEC_GLOBAL); in writeGlobalSection()
809 endSection(Section); in writeGlobalSection()
816 SectionBookkeeping Section; in writeEventSection() local
817 startSection(Section, wasm::WASM_SEC_EVENT); in writeEventSection()
825 endSection(Section); in writeEventSection()
832 SectionBookkeeping Section; in writeExportSection() local
833 startSection(Section, wasm::WASM_SEC_EXPORT); in writeExportSection()
842 endSection(Section); in writeExportSection()
849 SectionBookkeeping Section; in writeElemSection() local
850 startSection(Section, wasm::WASM_SEC_ELEM); in writeElemSection()
864 endSection(Section); in writeElemSection()
873 SectionBookkeeping Section; in writeCodeSection() local
874 startSection(Section, wasm::WASM_SEC_CODE); in writeCodeSection()
875 CodeSectionIndex = Section.Index; in writeCodeSection()
887 FuncSection.setSectionOffset(W.OS.tell() - Section.ContentsOffset); in writeCodeSection()
892 applyRelocations(CodeRelocations, Section.ContentsOffset); in writeCodeSection()
894 endSection(Section); in writeCodeSection()
901 SectionBookkeeping Section; in writeDataSection() local
902 startSection(Section, wasm::WASM_SEC_DATA); in writeDataSection()
903 DataSectionIndex = Section.Index; in writeDataSection()
913 Segment.Section->setSectionOffset(W.OS.tell() - Section.ContentsOffset); in writeDataSection()
918 applyRelocations(DataRelocations, Section.ContentsOffset); in writeDataSection()
920 endSection(Section); in writeDataSection()
944 SectionBookkeeping Section; in writeRelocSection() local
945 startCustomSection(Section, std::string("reloc.") + Name.str()); in writeRelocSection()
961 endSection(Section); in writeRelocSection()
966 auto &Relocations = CustomSectionsRelocations[Sec.Section]; in writeCustomRelocSections()
975 SectionBookkeeping Section; in writeLinkingMetaDataSection() local
976 startCustomSection(Section, "linking"); in writeLinkingMetaDataSection()
1052 endSection(Section); in writeLinkingMetaDataSection()
1058 SectionBookkeeping Section; in writeCustomSections() local
1059 auto *Sec = CustomSection.Section; in writeCustomSections()
1060 startCustomSection(Section, CustomSection.Name); in writeCustomSections()
1062 Sec->setSectionOffset(W.OS.tell() - Section.ContentsOffset); in writeCustomSections()
1065 CustomSection.OutputContentsOffset = Section.ContentsOffset; in writeCustomSections()
1066 CustomSection.OutputIndex = Section.Index; in writeCustomSections()
1068 endSection(Section); in writeCustomSections()
1071 auto &Relocations = CustomSectionsRelocations[CustomSection.Section]; in writeCustomSections()
1246 auto &Section = static_cast<MCSectionWasm &>(Sec); in writeObject() local
1247 StringRef SectionName = Section.getSectionName(); in writeObject()
1254 if (Section.getKind().isText()) in writeObject()
1257 if (Section.isWasmData()) { in writeObject()
1259 DataSize = alignTo(DataSize, Section.getAlignment()); in writeObject()
1264 Segment.Section = &Section; in writeObject()
1265 addData(Segment.Data, Section); in writeObject()
1266 Segment.Alignment = Log2_32(Section.getAlignment()); in writeObject()
1269 Section.setSegmentIndex(SegmentIndex); in writeObject()
1271 if (const MCSymbolWasm *C = Section.getGroup()) { in writeObject()
1292 CustomSections.emplace_back(Name, &Section); in writeObject()
1335 auto &Section = static_cast<MCSectionWasm &>(WS.getSection()); in writeObject() local
1336 if (const MCSymbolWasm *C = Section.getGroup()) { in writeObject()