Lines Matching defs:MachO
60 #include "llvm/Object/MachO.h"
551 if (auto *MachO = dyn_cast<MachOObjectFile>(Obj))
552 return getMachORelocationValueString(MachO, Rel, Result);
563 auto *MachO = dyn_cast<MachOObjectFile>(RelRef.getObject());
564 if (!MachO)
567 unsigned Arch = MachO->getArch();
569 uint64_t Type = MachO->getRelocationType(Rel);
574 return Type == MachO::GENERIC_RELOC_PAIR;
579 if (Type == MachO::X86_64_RELOC_UNSIGNED && Rel.d.a > 0) {
582 uint64_t PrevType = MachO->getRelocationType(RelPrev);
583 if (PrevType == MachO::X86_64_RELOC_SUBTRACTOR)
1590 static StringRef getSegmentName(const MachOObjectFile *MachO,
1592 if (MachO) {
1594 StringRef SegmentName = MachO->getSectionFinalSegmentName(DR);
1699 const MachOObjectFile *MachO = dyn_cast<const MachOObjectFile>(&Obj);
1737 if (MachO) {
1739 // symbols that support MachO header introspection. They do not bind to
1747 uint8_t NType = (MachO->is64Bit() ?
1748 MachO->getSymbol64TableEntry(SymDRI).n_type:
1749 MachO->getSymbolTableEntry(SymDRI).n_type);
1750 if (NType & MachO::N_STAB)
1897 StringRef SegmentName = getSegmentName(MachO, Section);
2788 const MachOObjectFile *MachO = dyn_cast<const MachOObjectFile>(Obj);
2798 StringRef SegmentName = getSegmentName(MachO, Section);
2880 const MachOObjectFile *MachO = dyn_cast<const MachOObjectFile>(&O);
2901 if (MachO) {
2904 (MachO->is64Bit() ? MachO->getSymbol64TableEntry(SymDRI).n_type
2905 : MachO->getSymbolTableEntry(SymDRI).n_type);
2906 if (NType & MachO::N_STAB)
2983 StringRef SegmentName = getSegmentName(MachO, *Section);
3068 else if (const MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(O))
3069 printMachOUnwindInfo(MachO);
3074 "for COFF and MachO object files.\n";