Lines Matching refs:Ctx

66   EHFrameSection = Ctx->getMachOSection(  in initMachOMCObjectFileInfo()
77 switch (Ctx->emitDwarfUnwindInfo()) { in initMachOMCObjectFileInfo()
93 = Ctx->getMachOSection("__TEXT", "__text", in initMachOMCObjectFileInfo()
97 = Ctx->getMachOSection("__DATA", "__data", 0, SectionKind::getData()); in initMachOMCObjectFileInfo()
103 = Ctx->getMachOSection("__DATA", "__thread_data", in initMachOMCObjectFileInfo()
107 = Ctx->getMachOSection("__DATA", "__thread_bss", in initMachOMCObjectFileInfo()
113 = Ctx->getMachOSection("__DATA", "__thread_vars", in initMachOMCObjectFileInfo()
117 TLSThreadInitSection = Ctx->getMachOSection( in initMachOMCObjectFileInfo()
122 = Ctx->getMachOSection("__TEXT", "__cstring", in initMachOMCObjectFileInfo()
126 = Ctx->getMachOSection("__TEXT","__ustring", 0, in initMachOMCObjectFileInfo()
129 = Ctx->getMachOSection("__TEXT", "__literal4", in initMachOMCObjectFileInfo()
133 = Ctx->getMachOSection("__TEXT", "__literal8", in initMachOMCObjectFileInfo()
138 = Ctx->getMachOSection("__TEXT", "__literal16", in initMachOMCObjectFileInfo()
143 = Ctx->getMachOSection("__TEXT", "__const", 0, in initMachOMCObjectFileInfo()
155 = Ctx->getMachOSection("__DATA", "__const", 0, in initMachOMCObjectFileInfo()
160 = Ctx->getMachOSection("__TEXT", "__textcoal_nt", in initMachOMCObjectFileInfo()
165 = Ctx->getMachOSection("__TEXT", "__const_coal", in initMachOMCObjectFileInfo()
168 DataCoalSection = Ctx->getMachOSection( in initMachOMCObjectFileInfo()
179 = Ctx->getMachOSection("__DATA","__common", in initMachOMCObjectFileInfo()
183 = Ctx->getMachOSection("__DATA","__bss", MachO::S_ZEROFILL, in initMachOMCObjectFileInfo()
188 = Ctx->getMachOSection("__DATA", "__la_symbol_ptr", in initMachOMCObjectFileInfo()
192 = Ctx->getMachOSection("__DATA", "__nl_symbol_ptr", in initMachOMCObjectFileInfo()
197 = Ctx->getMachOSection("__DATA", "__thread_ptr", in initMachOMCObjectFileInfo()
201 AddrSigSection = Ctx->getMachOSection("__DATA", "__llvm_addrsig", 0, in initMachOMCObjectFileInfo()
205 LSDASection = Ctx->getMachOSection("__TEXT", "__gcc_except_tab", 0, in initMachOMCObjectFileInfo()
214 Ctx->getMachOSection("__LD", "__compact_unwind", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
227 Ctx->getMachOSection("__DWARF", "__debug_names", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
230 Ctx->getMachOSection("__DWARF", "__apple_names", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
233 Ctx->getMachOSection("__DWARF", "__apple_objc", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
237 Ctx->getMachOSection("__DWARF", "__apple_namespac", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
240 Ctx->getMachOSection("__DWARF", "__apple_types", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
244 Ctx->getMachOSection("__DWARF", "__swift_ast", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
248 Ctx->getMachOSection("__DWARF", "__debug_abbrev", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
251 Ctx->getMachOSection("__DWARF", "__debug_info", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
254 Ctx->getMachOSection("__DWARF", "__debug_line", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
257 Ctx->getMachOSection("__DWARF", "__debug_line_str", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
260 Ctx->getMachOSection("__DWARF", "__debug_frame", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
263 Ctx->getMachOSection("__DWARF", "__debug_pubnames", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
266 Ctx->getMachOSection("__DWARF", "__debug_pubtypes", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
269 Ctx->getMachOSection("__DWARF", "__debug_gnu_pubn", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
272 Ctx->getMachOSection("__DWARF", "__debug_gnu_pubt", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
275 Ctx->getMachOSection("__DWARF", "__debug_str", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
278 Ctx->getMachOSection("__DWARF", "__debug_str_offs", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
281 Ctx->getMachOSection("__DWARF", "__debug_addr", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
284 Ctx->getMachOSection("__DWARF", "__debug_loc", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
287 Ctx->getMachOSection("__DWARF", "__debug_loclists", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
291 Ctx->getMachOSection("__DWARF", "__debug_aranges", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
294 Ctx->getMachOSection("__DWARF", "__debug_ranges", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
297 Ctx->getMachOSection("__DWARF", "__debug_rnglists", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
300 Ctx->getMachOSection("__DWARF", "__debug_macinfo", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
303 Ctx->getMachOSection("__DWARF", "__debug_macro", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
306 Ctx->getMachOSection("__DWARF", "__debug_inlined", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
309 Ctx->getMachOSection("__DWARF", "__debug_cu_index", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
312 Ctx->getMachOSection("__DWARF", "__debug_tu_index", MachO::S_ATTR_DEBUG, in initMachOMCObjectFileInfo()
314 StackMapSection = Ctx->getMachOSection("__LLVM_STACKMAPS", "__llvm_stackmaps", in initMachOMCObjectFileInfo()
317 FaultMapSection = Ctx->getMachOSection("__LLVM_FAULTMAPS", "__llvm_faultmaps", in initMachOMCObjectFileInfo()
320 RemarksSection = Ctx->getMachOSection( in initMachOMCObjectFileInfo()
326 if (!Ctx->getSwift5ReflectionSegmentName().empty()) { in initMachOMCObjectFileInfo()
330 Ctx->getMachOSection(Ctx->getSwift5ReflectionSegmentName().data(), \ in initMachOMCObjectFileInfo()
349 FDECFIEncoding = Ctx->getAsmInfo()->getCodePointerSize() == 4 in initELFMCObjectFileInfo()
388 BSSSection = Ctx->getELFSection(".bss", ELF::SHT_NOBITS, in initELFMCObjectFileInfo()
391 TextSection = Ctx->getELFSection(".text", ELF::SHT_PROGBITS, in initELFMCObjectFileInfo()
394 DataSection = Ctx->getELFSection(".data", ELF::SHT_PROGBITS, in initELFMCObjectFileInfo()
398 Ctx->getELFSection(".rodata", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in initELFMCObjectFileInfo()
401 Ctx->getELFSection(".tdata", ELF::SHT_PROGBITS, in initELFMCObjectFileInfo()
404 TLSBSSSection = Ctx->getELFSection( in initELFMCObjectFileInfo()
407 DataRelROSection = Ctx->getELFSection(".data.rel.ro", ELF::SHT_PROGBITS, in initELFMCObjectFileInfo()
411 Ctx->getELFSection(".rodata.cst4", ELF::SHT_PROGBITS, in initELFMCObjectFileInfo()
415 Ctx->getELFSection(".rodata.cst8", ELF::SHT_PROGBITS, in initELFMCObjectFileInfo()
419 Ctx->getELFSection(".rodata.cst16", ELF::SHT_PROGBITS, in initELFMCObjectFileInfo()
423 Ctx->getELFSection(".rodata.cst32", ELF::SHT_PROGBITS, in initELFMCObjectFileInfo()
432 LSDASection = Ctx->getELFSection(".gcc_except_table", ELF::SHT_PROGBITS, in initELFMCObjectFileInfo()
448 Ctx->getELFSection(".debug_abbrev", DebugSecType, 0); in initELFMCObjectFileInfo()
449 DwarfInfoSection = Ctx->getELFSection(".debug_info", DebugSecType, 0); in initELFMCObjectFileInfo()
450 DwarfLineSection = Ctx->getELFSection(".debug_line", DebugSecType, 0); in initELFMCObjectFileInfo()
452 Ctx->getELFSection(".debug_line_str", DebugSecType, in initELFMCObjectFileInfo()
454 DwarfFrameSection = Ctx->getELFSection(".debug_frame", DebugSecType, 0); in initELFMCObjectFileInfo()
456 Ctx->getELFSection(".debug_pubnames", DebugSecType, 0); in initELFMCObjectFileInfo()
458 Ctx->getELFSection(".debug_pubtypes", DebugSecType, 0); in initELFMCObjectFileInfo()
460 Ctx->getELFSection(".debug_gnu_pubnames", DebugSecType, 0); in initELFMCObjectFileInfo()
462 Ctx->getELFSection(".debug_gnu_pubtypes", DebugSecType, 0); in initELFMCObjectFileInfo()
464 Ctx->getELFSection(".debug_str", DebugSecType, in initELFMCObjectFileInfo()
466 DwarfLocSection = Ctx->getELFSection(".debug_loc", DebugSecType, 0); in initELFMCObjectFileInfo()
468 Ctx->getELFSection(".debug_aranges", DebugSecType, 0); in initELFMCObjectFileInfo()
470 Ctx->getELFSection(".debug_ranges", DebugSecType, 0); in initELFMCObjectFileInfo()
472 Ctx->getELFSection(".debug_macinfo", DebugSecType, 0); in initELFMCObjectFileInfo()
473 DwarfMacroSection = Ctx->getELFSection(".debug_macro", DebugSecType, 0); in initELFMCObjectFileInfo()
479 Ctx->getELFSection(".debug_names", ELF::SHT_PROGBITS, 0); in initELFMCObjectFileInfo()
481 Ctx->getELFSection(".apple_names", ELF::SHT_PROGBITS, 0); in initELFMCObjectFileInfo()
483 Ctx->getELFSection(".apple_objc", ELF::SHT_PROGBITS, 0); in initELFMCObjectFileInfo()
485 Ctx->getELFSection(".apple_namespaces", ELF::SHT_PROGBITS, 0); in initELFMCObjectFileInfo()
487 Ctx->getELFSection(".apple_types", ELF::SHT_PROGBITS, 0); in initELFMCObjectFileInfo()
491 Ctx->getELFSection(".debug_str_offsets", DebugSecType, 0); in initELFMCObjectFileInfo()
492 DwarfAddrSection = Ctx->getELFSection(".debug_addr", DebugSecType, 0); in initELFMCObjectFileInfo()
493 DwarfRnglistsSection = Ctx->getELFSection(".debug_rnglists", DebugSecType, 0); in initELFMCObjectFileInfo()
494 DwarfLoclistsSection = Ctx->getELFSection(".debug_loclists", DebugSecType, 0); in initELFMCObjectFileInfo()
498 Ctx->getELFSection(".debug_info.dwo", DebugSecType, ELF::SHF_EXCLUDE); in initELFMCObjectFileInfo()
500 Ctx->getELFSection(".debug_types.dwo", DebugSecType, ELF::SHF_EXCLUDE); in initELFMCObjectFileInfo()
502 Ctx->getELFSection(".debug_abbrev.dwo", DebugSecType, ELF::SHF_EXCLUDE); in initELFMCObjectFileInfo()
503 DwarfStrDWOSection = Ctx->getELFSection( in initELFMCObjectFileInfo()
507 Ctx->getELFSection(".debug_line.dwo", DebugSecType, ELF::SHF_EXCLUDE); in initELFMCObjectFileInfo()
509 Ctx->getELFSection(".debug_loc.dwo", DebugSecType, ELF::SHF_EXCLUDE); in initELFMCObjectFileInfo()
510 DwarfStrOffDWOSection = Ctx->getELFSection(".debug_str_offsets.dwo", in initELFMCObjectFileInfo()
513 Ctx->getELFSection(".debug_rnglists.dwo", DebugSecType, ELF::SHF_EXCLUDE); in initELFMCObjectFileInfo()
515 Ctx->getELFSection(".debug_macinfo.dwo", DebugSecType, ELF::SHF_EXCLUDE); in initELFMCObjectFileInfo()
517 Ctx->getELFSection(".debug_macro.dwo", DebugSecType, ELF::SHF_EXCLUDE); in initELFMCObjectFileInfo()
520 Ctx->getELFSection(".debug_loclists.dwo", DebugSecType, ELF::SHF_EXCLUDE); in initELFMCObjectFileInfo()
524 Ctx->getELFSection(".debug_cu_index", DebugSecType, 0); in initELFMCObjectFileInfo()
526 Ctx->getELFSection(".debug_tu_index", DebugSecType, 0); in initELFMCObjectFileInfo()
529 Ctx->getELFSection(".llvm_stackmaps", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in initELFMCObjectFileInfo()
532 Ctx->getELFSection(".llvm_faultmaps", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in initELFMCObjectFileInfo()
535 Ctx->getELFSection(".eh_frame", EHSectionType, EHSectionFlags); in initELFMCObjectFileInfo()
537 StackSizesSection = Ctx->getELFSection(".stack_sizes", ELF::SHT_PROGBITS, 0); in initELFMCObjectFileInfo()
539 PseudoProbeSection = Ctx->getELFSection(".pseudo_probe", DebugSecType, 0); in initELFMCObjectFileInfo()
541 Ctx->getELFSection(".pseudo_probe_desc", DebugSecType, 0); in initELFMCObjectFileInfo()
543 LLVMStatsSection = Ctx->getELFSection(".llvm_stats", ELF::SHT_PROGBITS, 0); in initELFMCObjectFileInfo()
548 Ctx->getGOFFSection(".text", SectionKind::getText(), nullptr, nullptr); in initGOFFMCObjectFileInfo()
550 Ctx->getGOFFSection(".bss", SectionKind::getBSS(), nullptr, nullptr); in initGOFFMCObjectFileInfo()
552 Ctx->getGOFFSection(".ppa1", SectionKind::getMetadata(), TextSection, in initGOFFMCObjectFileInfo()
553 MCConstantExpr::create(GOFF::SK_PPA1, *Ctx)); in initGOFFMCObjectFileInfo()
555 Ctx->getGOFFSection(".ppa2", SectionKind::getMetadata(), TextSection, in initGOFFMCObjectFileInfo()
556 MCConstantExpr::create(GOFF::SK_PPA2, *Ctx)); in initGOFFMCObjectFileInfo()
558 Ctx->getGOFFSection(".ada", SectionKind::getData(), nullptr, nullptr); in initGOFFMCObjectFileInfo()
560 Ctx->getGOFFSection("B_IDRL", SectionKind::getData(), nullptr, nullptr); in initGOFFMCObjectFileInfo()
565 Ctx->getCOFFSection(".eh_frame", COFF::IMAGE_SCN_CNT_INITIALIZED_DATA | in initCOFFMCObjectFileInfo()
575 BSSSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
579 TextSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
585 DataSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
589 ReadOnlySection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
598 LSDASection = Ctx->getCOFFSection(".gcc_except_table", in initCOFFMCObjectFileInfo()
606 Ctx->getCOFFSection(".debug$S", (COFF::IMAGE_SCN_MEM_DISCARDABLE | in initCOFFMCObjectFileInfo()
611 Ctx->getCOFFSection(".debug$T", (COFF::IMAGE_SCN_MEM_DISCARDABLE | in initCOFFMCObjectFileInfo()
615 COFFGlobalTypeHashesSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
621 DwarfAbbrevSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
626 DwarfInfoSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
631 DwarfLineSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
636 DwarfLineStrSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
641 DwarfFrameSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
646 DwarfPubNamesSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
651 DwarfPubTypesSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
656 DwarfGnuPubNamesSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
661 DwarfGnuPubTypesSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
666 DwarfStrSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
671 DwarfStrOffSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
676 DwarfLocSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
681 DwarfLoclistsSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
686 DwarfARangesSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
691 DwarfRangesSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
696 DwarfRnglistsSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
701 DwarfMacinfoSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
706 DwarfMacroSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
711 DwarfMacinfoDWOSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
716 DwarfMacroDWOSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
721 DwarfInfoDWOSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
726 DwarfTypesDWOSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
731 DwarfAbbrevDWOSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
736 DwarfStrDWOSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
741 DwarfLineDWOSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
746 DwarfLocDWOSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
751 DwarfStrOffDWOSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
756 DwarfAddrSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
761 DwarfCUIndexSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
766 DwarfTUIndexSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
771 DwarfDebugNamesSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
776 DwarfAccelNamesSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
781 DwarfAccelNamespaceSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
786 DwarfAccelTypesSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
791 DwarfAccelObjCSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
797 DrectveSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
801 PDataSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
805 XDataSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
809 SXDataSection = Ctx->getCOFFSection(".sxdata", COFF::IMAGE_SCN_LNK_INFO, in initCOFFMCObjectFileInfo()
812 GEHContSection = Ctx->getCOFFSection(".gehcont$y", in initCOFFMCObjectFileInfo()
817 GFIDsSection = Ctx->getCOFFSection(".gfids$y", in initCOFFMCObjectFileInfo()
822 GIATsSection = Ctx->getCOFFSection(".giats$y", in initCOFFMCObjectFileInfo()
827 GLJMPSection = Ctx->getCOFFSection(".gljmp$y", in initCOFFMCObjectFileInfo()
832 TLSDataSection = Ctx->getCOFFSection( in initCOFFMCObjectFileInfo()
837 StackMapSection = Ctx->getCOFFSection(".llvm_stackmaps", in initCOFFMCObjectFileInfo()
845 TextSection = Ctx->getSPIRVSection(); in initSPIRVMCObjectFileInfo()
849 TextSection = Ctx->getWasmSection(".text", SectionKind::getText()); in initWasmMCObjectFileInfo()
850 DataSection = Ctx->getWasmSection(".data", SectionKind::getData()); in initWasmMCObjectFileInfo()
853 Ctx->getWasmSection(".debug_line", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
855 Ctx->getWasmSection(".debug_line_str", SectionKind::getMetadata(), in initWasmMCObjectFileInfo()
857 DwarfStrSection = Ctx->getWasmSection( in initWasmMCObjectFileInfo()
860 Ctx->getWasmSection(".debug_loc", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
862 Ctx->getWasmSection(".debug_abbrev", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
863 DwarfARangesSection = Ctx->getWasmSection(".debug_aranges", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
865 Ctx->getWasmSection(".debug_ranges", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
867 Ctx->getWasmSection(".debug_macinfo", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
869 Ctx->getWasmSection(".debug_macro", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
870 DwarfCUIndexSection = Ctx->getWasmSection(".debug_cu_index", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
871 DwarfTUIndexSection = Ctx->getWasmSection(".debug_tu_index", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
873 Ctx->getWasmSection(".debug_info", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
874 DwarfFrameSection = Ctx->getWasmSection(".debug_frame", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
875 DwarfPubNamesSection = Ctx->getWasmSection(".debug_pubnames", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
876 DwarfPubTypesSection = Ctx->getWasmSection(".debug_pubtypes", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
878 Ctx->getWasmSection(".debug_gnu_pubnames", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
880 Ctx->getWasmSection(".debug_gnu_pubtypes", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
883 Ctx->getWasmSection(".debug_names", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
885 Ctx->getWasmSection(".debug_str_offsets", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
887 Ctx->getWasmSection(".debug_addr", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
889 Ctx->getWasmSection(".debug_rnglists", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
891 Ctx->getWasmSection(".debug_loclists", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
895 Ctx->getWasmSection(".debug_info.dwo", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
897 Ctx->getWasmSection(".debug_types.dwo", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
899 Ctx->getWasmSection(".debug_abbrev.dwo", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
901 Ctx->getWasmSection(".debug_str.dwo", SectionKind::getMetadata(), in initWasmMCObjectFileInfo()
904 Ctx->getWasmSection(".debug_line.dwo", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
906 Ctx->getWasmSection(".debug_loc.dwo", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
908 Ctx->getWasmSection(".debug_str_offsets.dwo", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
910 Ctx->getWasmSection(".debug_rnglists.dwo", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
912 Ctx->getWasmSection(".debug_macinfo.dwo", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
914 Ctx->getWasmSection(".debug_macro.dwo", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
917 Ctx->getWasmSection(".debug_loclists.dwo", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
921 Ctx->getWasmSection(".debug_cu_index", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
923 Ctx->getWasmSection(".debug_tu_index", SectionKind::getMetadata()); in initWasmMCObjectFileInfo()
928 LSDASection = Ctx->getWasmSection(".rodata.gcc_except_table", in initWasmMCObjectFileInfo()
939 TextSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
950 DataSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
955 ReadOnlySection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
961 ReadOnly8Section = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
967 ReadOnly16Section = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
973 TLSDataSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
978 TOCBaseSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
986 LSDASection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
991 CompactUnwindSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
999 DwarfAbbrevSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
1004 DwarfInfoSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
1008 DwarfLineSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
1012 DwarfFrameSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
1017 DwarfPubNamesSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
1022 DwarfPubTypesSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
1027 DwarfStrSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
1031 DwarfLocSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
1035 DwarfARangesSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
1040 DwarfRangesSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
1045 DwarfMacinfoSection = Ctx->getXCOFFSection( in initXCOFFMCObjectFileInfo()
1052 TextSection = Ctx->getDXContainerSection("DXBC", SectionKind::getText()); in initDXContainerObjectFileInfo()
1060 Ctx = &MCCtx; in initMCObjectFileInfo()
1078 Triple TheTriple = Ctx->getTargetTriple(); in initMCObjectFileInfo()
1079 switch (Ctx->getObjectFileType()) { in initMCObjectFileInfo()
1109 switch (Ctx->getTargetTriple().getObjectFormat()) { in getDwarfComdatSection()
1111 return Ctx->getELFSection(Name, ELF::SHT_PROGBITS, ELF::SHF_GROUP, 0, in getDwarfComdatSection()
1114 return Ctx->getWasmSection(Name, SectionKind::getMetadata(), 0, in getDwarfComdatSection()
1132 if ((Ctx->getObjectFileType() != MCContext::IsELF) || in getStackSizesSection()
1133 Ctx->getTargetTriple().isPS4()) in getStackSizesSection()
1144 return Ctx->getELFSection(".stack_sizes", ELF::SHT_PROGBITS, Flags, 0, in getStackSizesSection()
1151 if (Ctx->getObjectFileType() != MCContext::IsELF) in getBBAddrMapSection()
1164 return Ctx->getELFSection(".llvm_bb_addr_map", ELF::SHT_LLVM_BB_ADDR_MAP, in getBBAddrMapSection()
1171 if (Ctx->getObjectFileType() != MCContext::IsELF) in getKCFITrapSection()
1182 return Ctx->getELFSection(".kcfi_traps", ELF::SHT_PROGBITS, Flags, 0, in getKCFITrapSection()
1190 if (Ctx->getObjectFileType() != MCContext::IsELF) in getPseudoProbeSection()
1201 return Ctx->getELFSection(PseudoProbeSection->getName(), ELF::SHT_PROGBITS, in getPseudoProbeSection()
1208 if (Ctx->getObjectFileType() == MCContext::IsELF) { in getPseudoProbeDescSection()
1218 if (Ctx->getTargetTriple().supportsCOMDAT() && !FuncName.empty()) { in getPseudoProbeDescSection()
1221 return Ctx->getELFSection(S->getName(), S->getType(), Flags, in getPseudoProbeDescSection()
1236 if (Ctx->getObjectFileType() != MCContext::IsELF) in getPCSection()
1251 return Ctx->getELFSection(Name, ELF::SHT_PROGBITS, Flags, 0, GroupName, true, in getPCSection()