Lines Matching refs:MachO
50 if (Parent->getMagic() == MachO::FAT_MAGIC) { in ObjectForArch()
51 const char *HeaderPos = ParentData.begin() + sizeof(MachO::fat_header) + in ObjectForArch()
52 Index * sizeof(MachO::fat_arch); in ObjectForArch()
53 Header = getUniversalBinaryStruct<MachO::fat_arch>(HeaderPos); in ObjectForArch()
58 const char *HeaderPos = ParentData.begin() + sizeof(MachO::fat_header) + in ObjectForArch()
59 Index * sizeof(MachO::fat_arch_64); in ObjectForArch()
60 Header64 = getUniversalBinaryStruct<MachO::fat_arch_64>(HeaderPos); in ObjectForArch()
76 if (Parent->getMagic() == MachO::FAT_MAGIC) in getAsObjectFile()
93 if (Parent->getMagic() == MachO::FAT_MAGIC) in getAsArchive()
118 if (Data.getBufferSize() < sizeof(MachO::fat_header)) { in MachOUniversalBinary()
126 MachO::fat_header H = in MachOUniversalBinary()
127 getUniversalBinaryStruct<MachO::fat_header>(Buf.begin()); in MachOUniversalBinary()
130 uint32_t MinSize = sizeof(MachO::fat_header); in MachOUniversalBinary()
131 if (Magic == MachO::FAT_MAGIC) in MachOUniversalBinary()
132 MinSize += sizeof(MachO::fat_arch) * NumberOfObjects; in MachOUniversalBinary()
133 else if (Magic == MachO::FAT_MAGIC_64) in MachOUniversalBinary()
134 MinSize += sizeof(MachO::fat_arch_64) * NumberOfObjects; in MachOUniversalBinary()
141 Twine(Magic == MachO::FAT_MAGIC ? "" : "_64") + in MachOUniversalBinary()