Lines Matching refs:Obj

31   MachODumper(const MachOObjectFile *Obj, ScopedPrinter &Writer)  in MachODumper()  argument
32 : ObjDumper(Writer), Obj(Obj) {} in MachODumper()
58 void printRelocation(const MachOObjectFile *Obj, const RelocationRef &Reloc);
60 void printSections(const MachOObjectFile *Obj);
62 const MachOObjectFile *Obj; member in __anon3dc312af0111::MachODumper
70 std::error_code createMachODumper(const object::ObjectFile *Obj, in createMachODumper() argument
73 const MachOObjectFile *MachOObj = dyn_cast<MachOObjectFile>(Obj); in createMachODumper()
304 static void getSection(const MachOObjectFile *Obj, in getSection() argument
307 if (!Obj->is64Bit()) { in getSection()
308 MachO::section Sect = Obj->getSection(Sec); in getSection()
320 MachO::section_64 Sect = Obj->getSection64(Sec); in getSection()
333 static void getSegment(const MachOObjectFile *Obj, in getSegment() argument
336 if (!Obj->is64Bit()) { in getSegment()
337 MachO::segment_command SC = Obj->getSegmentLoadCommand(L); in getSegment()
351 MachO::segment_command_64 SC = Obj->getSegment64LoadCommand(L); in getSegment()
365 static void getSymbol(const MachOObjectFile *Obj, in getSymbol() argument
368 if (!Obj->is64Bit()) { in getSymbol()
369 MachO::nlist Entry = Obj->getSymbolTableEntry(DRI); in getSymbol()
377 MachO::nlist_64 Entry = Obj->getSymbol64TableEntry(DRI); in getSymbol()
387 if (!Obj->is64Bit()) { in printFileHeaders()
388 printFileHeaders(Obj->getHeader()); in printFileHeaders()
390 printFileHeaders(Obj->getHeader64()); in printFileHeaders()
391 W.printHex("Reserved", Obj->getHeader64().reserved); in printFileHeaders()
430 return printSections(Obj); in printSections()
433 void MachODumper::printSections(const MachOObjectFile *Obj) { in printSections() argument
437 for (const SectionRef &Section : Obj->sections()) { in printSections()
441 getSection(Obj, Section.getRawDataRefImpl(), MOSection); in printSections()
447 ArrayRef<char> RawName = Obj->getSectionRawName(DR); in printSections()
448 StringRef SegmentName = Obj->getSectionFinalSegmentName(DR); in printSections()
449 ArrayRef<char> RawSegmentName = Obj->getSectionRawFinalSegmentName(DR); in printSections()
467 if (Obj->is64Bit()) in printSections()
478 for (const SymbolRef &Symbol : Obj->symbols()) { in printSections()
502 for (const SectionRef &Section : Obj->sections()) { in printRelocations()
525 return printRelocation(Obj, Reloc); in printRelocation()
528 void MachODumper::printRelocation(const MachOObjectFile *Obj, in printRelocation() argument
535 MachO::any_relocation_info RE = Obj->getRelocation(DR); in printRelocation()
536 bool IsScattered = Obj->isRelocationScattered(RE); in printRelocation()
537 bool IsExtern = !IsScattered && Obj->getPlainRelocationExternal(RE); in printRelocation()
542 if (Symbol != Obj->symbol_end()) { in printRelocation()
549 section_iterator SecI = Obj->getRelocationSection(DR); in printRelocation()
550 if (SecI != Obj->section_end()) { in printRelocation()
560 W.printNumber("PCRel", Obj->getAnyRelocationPCRel(RE)); in printRelocation()
561 W.printNumber("Length", Obj->getAnyRelocationLength(RE)); in printRelocation()
562 W.printNumber("Type", RelocName, Obj->getAnyRelocationType(RE)); in printRelocation()
564 W.printHex("Value", Obj->getScatteredRelocationValue(RE)); in printRelocation()
567 W.printNumber(Kind, TargetName, Obj->getPlainRelocationSymbolNum(RE)); in printRelocation()
574 SymbolNameOrOffset += utohexstr(Obj->getScatteredRelocationValue(RE)); in printRelocation()
581 << " " << Obj->getAnyRelocationPCRel(RE) in printRelocation()
582 << " " << Obj->getAnyRelocationLength(RE); in printRelocation()
586 OS << " " << Obj->getPlainRelocationExternal(RE); in printRelocation()
597 for (const SymbolRef &Symbol : Obj->symbols()) { in printSymbols()
616 getSymbol(Obj, Symbol.getRawDataRefImpl(), MOSymbol); in printSymbol()
622 if (SecI != Obj->section_end()) in printSymbol()
651 for (auto Sec : Obj->sections()) { in printStackMap()
669 if (Obj->isLittleEndian()) in printStackMap()
679 for (const auto &Load : Obj->load_commands()) { in printMachODataInCode()
681 MachO::linkedit_data_command LLC = Obj->getLinkeditDataLoadCommand(Load); in printMachODataInCode()
688 MachO::data_in_code_entry DICE = Obj->getDataInCodeTableEntry( in printMachODataInCode()
701 for (const auto &Load : Obj->load_commands()) { in printMachOVersionMin()
720 MachO::version_min_command VMC = Obj->getVersionMinLoadCommand(Load); in printMachOVersionMin()
746 for (const auto &Load : Obj->load_commands()) { in printMachODysymtab()
748 MachO::dysymtab_command DLC = Obj->getDysymtabLoadCommand(); in printMachODysymtab()
773 for (const auto &Load : Obj->load_commands()) { in printMachOSegment()
776 getSegment(Obj, Load, MOSegment); in printMachOSegment()
794 for (const auto &Load : Obj->load_commands()) { in printMachOIndirectSymbols()
796 MachO::dysymtab_command DLC = Obj->getDysymtabLoadCommand(); in printMachOIndirectSymbols()
803 W.printHex("Symbol Index", Obj->getIndirectSymbolTableEntry(DLC, i)); in printMachOIndirectSymbols()
810 for (const auto &Load : Obj->load_commands()) { in printMachOLinkerOptions()
812 MachO::linker_option_command LOLC = Obj->getLinkerOptionLoadCommand(Load); in printMachOLinkerOptions()