reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Object/MachO.h
  545   const MachO::mach_header &getHeader() const;

References

lib/Object/MachOObjectFile.cpp
  128   return O.getHeader().cputype;
  201   if (sizeof(MachO::load_command) > Obj.getHeader().sizeofcmds)
  213       Obj.getData().data() + HeaderSize + Obj.getHeader().sizeofcmds)
  298       if (Obj.getHeader().filetype != MachO::MH_DYLIB_STUB &&
  299           Obj.getHeader().filetype != MachO::MH_DSYM &&
  306       if (Obj.getHeader().filetype != MachO::MH_DYLIB_STUB &&
  307           Obj.getHeader().filetype != MachO::MH_DSYM &&
  316       if (Obj.getHeader().filetype != MachO::MH_DYLIB_STUB &&
  317           Obj.getHeader().filetype != MachO::MH_DSYM &&
  325       if (Obj.getHeader().filetype != MachO::MH_DYLIB_STUB &&
  326           Obj.getHeader().filetype != MachO::MH_DSYM &&
  334       if (Obj.getHeader().filetype != MachO::MH_DYLIB_STUB &&
  335           Obj.getHeader().filetype != MachO::MH_DSYM && s.size != 0 &&
  350       if (Obj.getHeader().filetype != MachO::MH_DYLIB_STUB &&
  351           Obj.getHeader().filetype != MachO::MH_DSYM &&
  766   if (Obj.getHeader().filetype != MachO::MH_DYLIB &&
  767       Obj.getHeader().filetype != MachO::MH_DYLIB_STUB)
 1273   SizeOfHeaders += getHeader().sizeofcmds;
 1287   uint32_t LoadCommandCount = getHeader().ncmds;
 1316         if (getHeader().filetype != MachO::MH_CORE ||
 1662   if ((getHeader().filetype == MachO::MH_DYLIB ||
 1663        getHeader().filetype == MachO::MH_DYLIB_STUB) &&
 1680     MachO::mach_header H = MachOObjectFile::getHeader();
 2116   assert((getHeader().filetype == MachO::MH_OBJECT ||
 2117           getHeader().filetype == MachO::MH_KEXT_BUNDLE) &&
 4405   if (getHeader().filetype == MachO::MH_OBJECT) {
 4632   return getHeader().filetype == MachO::MH_OBJECT;
tools/dsymutil/MachOUtils.cpp
  312     return Obj.getHeader().filetype != MachO::MH_OBJECT;
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
  257     return MachO.getHeader().cputype;
tools/llvm-lipo/llvm-lipo.cpp
  116     if (O.getHeader().filetype == MachO::MH_OBJECT) {
  141   switch (ObjectFile->getHeader().cputype) {
  169       : B(O), CPUType(O->getHeader().cputype),
  170         CPUSubType(O->getHeader().cpusubtype),
  192           std::tie(FO->getHeader().cputype, FO->getHeader().cpusubtype) !=
  192           std::tie(FO->getHeader().cputype, FO->getHeader().cpusubtype) !=
  193               std::tie(O->getHeader().cputype, O->getHeader().cpusubtype)) {
  193               std::tie(O->getHeader().cputype, O->getHeader().cpusubtype)) {
  195                      Twine(O->getHeader().cputype) + ") and cpusubtype(" +
  196                      Twine(O->getHeader().cpusubtype) +
  198                      Twine(FO->getHeader().cputype) + ") and cpusubtype(" +
  199                      Twine(FO->getHeader().cpusubtype) +
  214     CPUType = FO->getHeader().cputype;
  215     CPUSubType = FO->getHeader().cpusubtype;
tools/llvm-nm/llvm-nm.cpp
  411       H = MachO->MachOObjectFile::getHeader();
 1282       H = MachO->MachOObjectFile::getHeader();
 1762     H = MachO->MachOObjectFile::getHeader();
tools/llvm-objcopy/MachO/MachOReader.cpp
   21   O.Header.Magic = MachOObj.getHeader().magic;
   22   O.Header.CPUType = MachOObj.getHeader().cputype;
   23   O.Header.CPUSubType = MachOObj.getHeader().cpusubtype;
   24   O.Header.FileType = MachOObj.getHeader().filetype;
   25   O.Header.NCmds = MachOObj.getHeader().ncmds;
   26   O.Header.SizeOfCmds = MachOObj.getHeader().sizeofcmds;
   27   O.Header.Flags = MachOObj.getHeader().flags;
tools/llvm-objdump/MachODump.cpp
  690   uint32_t cputype = O->getHeader().cputype;
 1053   const uint64_t cputype = O->getHeader().cputype;
 1679   uint32_t cputype = O->getHeader().cputype;
 1892     H = MachO->MachOObjectFile::getHeader();
 1967     if (MachOOF->getHeader().filetype == MachO::MH_KEXT_BUNDLE &&
 1968         MachOOF->getHeader().cputype == MachO::CPU_TYPE_ARM64)
 2620     if (info->O->getHeader().filetype != MachO::MH_OBJECT) {
 2703     if (info->O->getHeader().filetype != MachO::MH_OBJECT) {
 2798     if (info->O->getHeader().filetype != MachO::MH_OBJECT) {
 2935     if (info->O->getHeader().filetype != MachO::MH_OBJECT) {
 6845     H = O->getHeader();
 6883   if (info->O->getHeader().filetype == MachO::MH_OBJECT) {
 7297   MachO::mach_header Header = MachOOF->getHeader();
 7398           const MachO::mach_header H = MachOOF->getHeader();
10206     H = Obj->getHeader();
10228     H = file->getHeader();
tools/llvm-readobj/MachODumper.cpp
  415     printFileHeaders(Obj->getHeader());
tools/llvm-size/llvm-size.cpp
  219   uint32_t Filetype = MachO->getHeader().filetype;
  294       if (MachO->getHeader().filetype == MachO::MH_OBJECT) {
  320       if (MachO->getHeader().filetype == MachO::MH_OBJECT) {
  525     H = MachO->MachOObjectFile::getHeader();
tools/obj2yaml/macho2yaml.cpp
  206   Y->Header.magic = Obj.getHeader().magic;
  207   Y->Header.cputype = Obj.getHeader().cputype;
  208   Y->Header.cpusubtype = Obj.getHeader().cpusubtype;
  209   Y->Header.filetype = Obj.getHeader().filetype;
  210   Y->Header.ncmds = Obj.getHeader().ncmds;
  211   Y->Header.sizeofcmds = Obj.getHeader().sizeofcmds;
  212   Y->Header.flags = Obj.getHeader().flags;