Lines Matching refs:Sec
53 MachOYAML::Section constructSectionCommon(SectionType Sec) {
55 memcpy(reinterpret_cast<void *>(&TempSec.sectname[0]), &Sec.sectname[0], 16);
56 memcpy(reinterpret_cast<void *>(&TempSec.segname[0]), &Sec.segname[0], 16);
57 TempSec.addr = Sec.addr;
58 TempSec.size = Sec.size;
59 TempSec.offset = Sec.offset;
60 TempSec.align = Sec.align;
61 TempSec.reloff = Sec.reloff;
62 TempSec.nreloc = Sec.nreloc;
63 TempSec.flags = Sec.flags;
64 TempSec.reserved1 = Sec.reserved1;
65 TempSec.reserved2 = Sec.reserved2;
71 MachOYAML::Section constructSection(SectionType Sec);
73 template <> MachOYAML::Section constructSection(MachO::section Sec) {
74 MachOYAML::Section TempSec = constructSectionCommon(Sec);
79 template <> MachOYAML::Section constructSection(MachO::section_64 Sec) {
80 MachOYAML::Section TempSec = constructSectionCommon(Sec);
81 TempSec.reserved3 = Sec.reserved3;
95 SectionType Sec;
96 memcpy((void *)&Sec, Curr, sizeof(SectionType));
97 MachO::swapStruct(Sec);
98 Sections.push_back(constructSection(Sec));