Lines Matching refs:Obj
47 COFFDumper(const llvm::object::COFFObjectFile *Obj, StreamWriter& Writer) in COFFDumper() argument
49 , Obj(Obj) { in COFFDumper()
93 const llvm::object::COFFObjectFile *Obj; member in __anon8fc027050111::COFFDumper
104 std::error_code createCOFFDumper(const object::ObjectFile *Obj, in createCOFFDumper() argument
107 const COFFObjectFile *COFFObj = dyn_cast<COFFObjectFile>(Obj); in createCOFFDumper()
331 static std::error_code getSymbolAuxData(const COFFObjectFile *Obj, in getSymbolAuxData() argument
334 ArrayRef<uint8_t> AuxData = Obj->getSymbolAuxData(Symbol); in getSymbolAuxData()
335 AuxData = AuxData.slice(AuxSymbolIdx * Obj->getSymbolTableEntrySize()); in getSymbolAuxData()
341 for (const SectionRef &S : Obj->sections()) { in cacheRelocations()
342 const coff_section *Section = Obj->getCOFFSection(S); in cacheRelocations()
355 if (Obj->getDataDirectory(Index, Data)) in printDataDirectory()
362 time_t TDS = Obj->getTimeDateStamp(); in printFileHeaders()
368 W.printEnum ("Machine", Obj->getMachine(), in printFileHeaders()
370 W.printNumber("SectionCount", Obj->getNumberOfSections()); in printFileHeaders()
371 W.printHex ("TimeDateStamp", FormattedTime, Obj->getTimeDateStamp()); in printFileHeaders()
372 W.printHex ("PointerToSymbolTable", Obj->getPointerToSymbolTable()); in printFileHeaders()
373 W.printNumber("SymbolCount", Obj->getNumberOfSymbols()); in printFileHeaders()
374 W.printNumber("OptionalHeaderSize", Obj->getSizeOfOptionalHeader()); in printFileHeaders()
375 W.printFlags ("Characteristics", Obj->getCharacteristics(), in printFileHeaders()
382 if (error(Obj->getPE32Header(PEHeader))) in printFileHeaders()
388 if (error(Obj->getPE32PlusHeader(PEPlusHeader))) in printFileHeaders()
393 if (const dos_header *DH = Obj->getDOSHeader()) in printFileHeaders()
531 if (error(resolveSymbolName(Obj->getCOFFSection(Section), Offset, in printCodeViewDebugInfo()
676 if (error(resolveSymbolName(Obj->getCOFFSection(Section), in printCodeViewSymbolsSubsection()
724 for (const SectionRef &Sec : Obj->sections()) { in printSections()
726 const coff_section *Section = Obj->getCOFFSection(Sec); in printSections()
755 for (const SymbolRef &Symbol : Obj->symbols()) { in printSections()
781 for (const SectionRef &Section : Obj->sections()) { in printRelocations()
818 if (Symbol != Obj->symbol_end() && error(Symbol->getName(SymbolName))) in printRelocation()
838 for (const SymbolRef &Symbol : Obj->symbols()) in printSymbols()
845 getSectionName(const llvm::object::COFFObjectFile *Obj, int32_t SectionNumber, in getSectionName() argument
849 if (std::error_code EC = Obj->getSectionName(Section, SectionName)) in getSectionName()
865 COFFSymbolRef Symbol = Obj->getCOFFSymbol(Sym); in printSymbol()
867 if (std::error_code EC = Obj->getSection(Symbol.getSectionNumber(), Section)) { in printSymbol()
874 if (Obj->getSymbolName(Symbol, SymbolName)) in printSymbol()
879 getSectionName(Obj, Symbol.getSectionNumber(), Section); in printSymbol()
896 if (error(getSymbolAuxData(Obj, Symbol, I, Aux))) in printSymbol()
907 if (error(getSymbolAuxData(Obj, Symbol, I, Aux))) in printSymbol()
910 ErrorOr<COFFSymbolRef> Linked = Obj->getSymbol(Aux->TagIndex); in printSymbol()
913 if (EC || (EC = Obj->getSymbolName(*Linked, LinkedName))) { in printSymbol()
925 if (error(getSymbolAuxData(Obj, Symbol, I, FileName))) in printSymbol()
931 Obj->getSymbolTableEntrySize()); in printSymbol()
936 if (error(getSymbolAuxData(Obj, Symbol, I, Aux))) in printSymbol()
953 std::error_code EC = Obj->getSection(AuxNumber, Assoc); in printSymbol()
954 ErrorOr<StringRef> Res = getSectionName(Obj, AuxNumber, Assoc); in printSymbol()
968 if (error(getSymbolAuxData(Obj, Symbol, I, Aux))) in printSymbol()
972 Obj->getSymbol(Aux->SymbolTableIndex); in printSymbol()
975 if (EC || (EC = Obj->getSymbolName(*ReferredSym, ReferredName))) { in printSymbol()
993 switch (Obj->getMachine()) { in printUnwindInfo()
1002 Win64EH::Dumper::Context Ctx(*Obj, Resolver, this); in printUnwindInfo()
1008 Decoder.dumpProcedureData(*Obj); in printUnwindInfo()
1012 W.printEnum("unsupported Image Machine", Obj->getMachine(), in printUnwindInfo()
1048 for (const ImportDirectoryEntryRef &I : Obj->import_directories()) { in printCOFFImports()
1062 for (const DelayImportDirectoryEntryRef &I : Obj->delay_import_directories()) { in printCOFFImports()
1080 for (const ExportDirectoryEntryRef &E : Obj->export_directories()) { in printCOFFExports()
1100 for (const SectionRef &Section : Obj->sections()) { in printCOFFDirectives()
1131 for (const BaseRelocRef &I : Obj->base_relocs()) { in printCOFFBaseReloc()