Lines Matching defs:MachO
56 #include "llvm/Object/MachO.h"
552 if (auto *MachO = dyn_cast<MachOObjectFile>(Obj))
553 return getMachORelocationValueString(MachO, Rel, Result);
564 auto *MachO = dyn_cast<MachOObjectFile>(RelRef.getObject());
565 if (!MachO)
568 unsigned Arch = MachO->getArch();
570 uint64_t Type = MachO->getRelocationType(Rel);
575 return Type == MachO::GENERIC_RELOC_PAIR;
580 if (Type == MachO::X86_64_RELOC_UNSIGNED && Rel.d.a > 0) {
583 uint64_t PrevType = MachO->getRelocationType(RelPrev);
584 if (PrevType == MachO::X86_64_RELOC_SUBTRACTOR)
1593 static StringRef getSegmentName(const MachOObjectFile *MachO,
1595 if (MachO) {
1597 StringRef SegmentName = MachO->getSectionFinalSegmentName(DR);
1702 const MachOObjectFile *MachO = dyn_cast<const MachOObjectFile>(&Obj);
1740 if (MachO) {
1742 // symbols that support MachO header introspection. They do not bind to
1750 uint8_t NType = (MachO->is64Bit() ?
1751 MachO->getSymbol64TableEntry(SymDRI).n_type:
1752 MachO->getSymbolTableEntry(SymDRI).n_type);
1753 if (NType & MachO::N_STAB)
1900 StringRef SegmentName = getSegmentName(MachO, Section);
2792 const MachOObjectFile *MachO = dyn_cast<const MachOObjectFile>(Obj);
2802 StringRef SegmentName = getSegmentName(MachO, Section);
2884 const MachOObjectFile *MachO = dyn_cast<const MachOObjectFile>(&O);
2895 if (MachO) {
2898 (MachO->is64Bit() ? MachO->getSymbol64TableEntry(SymDRI).n_type
2899 : MachO->getSymbolTableEntry(SymDRI).n_type);
2900 if (NType & MachO::N_STAB)
2987 StringRef SegmentName = getSegmentName(MachO, *Section);
3072 else if (const MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(O))
3073 printMachOUnwindInfo(MachO);
3078 "for COFF and MachO object files.\n";