[llvm] [XCOFF] Support the subtype in Dwarf section headers (PR #81667)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 15 02:18:16 PST 2024
================
@@ -210,6 +210,21 @@ bool XCOFFWriter::initSectionHeaders(uint64_t &CurrentOffset) {
return false;
}
}
+ if (InitSections[I].SectionSubtype) {
+ uint32_t DwarfSubtype =
+ static_cast<uint32_t>(*InitSections[I].SectionSubtype);
+ if (InitSections[I].Flags != XCOFF::STYP_DWARF) {
+ ErrHandler("a DwarfSectionSubtype is only allowed for a dwarf section");
+ return false;
+ }
+ unsigned mask = Is64Bit ? XCOFFSectionHeader64::SectionFlagsSubtypeMask
----------------
jh7370 wrote:
Wrong name style.
https://github.com/llvm/llvm-project/pull/81667
More information about the llvm-commits
mailing list