Lines Matching refs:Obj
78 COFFDumper(const llvm::object::COFFObjectFile *Obj, ScopedPrinter &Writer) in COFFDumper() argument
79 : ObjDumper(Writer), Obj(Obj), Writer(Writer), Types(100) {} in COFFDumper()
174 const llvm::object::COFFObjectFile *Obj; member in __anon102ad8080111::COFFDumper
194 const COFFObjectFile *Obj, StringRef SectionContents) in COFFObjectDumpDelegate() argument
196 Sec = Obj->getCOFFSection(SR); in COFFObjectDumpDelegate()
240 std::error_code createCOFFDumper(const object::ObjectFile *Obj, in createCOFFDumper() argument
243 const COFFObjectFile *COFFObj = dyn_cast<COFFObjectFile>(Obj); in createCOFFDumper()
259 auto SymI = Obj->symbol_end(); in resolveSymbol()
268 if (SymI == Obj->symbol_end()) in resolveSymbol()
329 const coff_section *Section = Obj->getCOFFSection(Sec); in printBinaryBlockWithRelocs()
595 static std::error_code getSymbolAuxData(const COFFObjectFile *Obj, in getSymbolAuxData() argument
598 ArrayRef<uint8_t> AuxData = Obj->getSymbolAuxData(Symbol); in getSymbolAuxData()
599 AuxData = AuxData.slice(AuxSymbolIdx * Obj->getSymbolTableEntrySize()); in getSymbolAuxData()
609 for (const SectionRef &S : Obj->sections()) { in cacheRelocations()
610 const coff_section *Section = Obj->getCOFFSection(S); in cacheRelocations()
622 if (Obj->getDataDirectory(Index, Data)) in printDataDirectory()
629 time_t TDS = Obj->getTimeDateStamp(); in printFileHeaders()
635 W.printEnum ("Machine", Obj->getMachine(), in printFileHeaders()
637 W.printNumber("SectionCount", Obj->getNumberOfSections()); in printFileHeaders()
638 W.printHex ("TimeDateStamp", FormattedTime, Obj->getTimeDateStamp()); in printFileHeaders()
639 W.printHex ("PointerToSymbolTable", Obj->getPointerToSymbolTable()); in printFileHeaders()
640 W.printNumber("SymbolCount", Obj->getNumberOfSymbols()); in printFileHeaders()
641 W.printNumber("OptionalHeaderSize", Obj->getSizeOfOptionalHeader()); in printFileHeaders()
642 W.printFlags ("Characteristics", Obj->getCharacteristics(), in printFileHeaders()
649 error(Obj->getPE32Header(PEHeader)); in printFileHeaders()
654 error(Obj->getPE32PlusHeader(PEPlusHeader)); in printFileHeaders()
658 if (const dos_header *DH = Obj->getDOSHeader()) in printFileHeaders()
733 for (const debug_directory &D : Obj->debug_directories()) { in printCOFFDebugDirectory()
749 error(Obj->getDebugPDBInfo(&D, DebugInfo, PDBFileName)); in printCOFFDebugDirectory()
762 Obj->getRvaAndSizeAsBytes(D.AddressOfRawData, D.SizeOfData, RawData)); in printCOFFDebugDirectory()
771 error(Obj->getVaPtr(TableVA, TableStart)); in printRVATable()
772 error(Obj->getVaPtr(TableVA + Count * EntrySize - 1, TableEnd)); in printRVATable()
777 OS << W.hex(Obj->getImageBase() + RVA); in printRVATable()
786 if (Obj->is64()) in printCOFFLoadConfig()
787 printCOFFLoadConfig(Obj->getLoadConfig64(), Tables); in printCOFFLoadConfig()
789 printCOFFLoadConfig(Obj->getLoadConfig32(), Tables); in printCOFFLoadConfig()
907 for (const SectionRef &S : Obj->sections()) { in printCodeViewDebugInfo()
915 for (const SectionRef &S : Obj->sections()) { in printCodeViewDebugInfo()
963 W.printNumber("Section", SectionName, Obj->getSectionID(Section)); in printCodeViewSymbolSection()
1032 error(resolveSymbolName(Obj->getCOFFSection(Section), SectionOffset, in printCodeViewSymbolSection()
1053 error(resolveSymbolName(Obj->getCOFFSection(Section), SectionContents, in printCodeViewSymbolSection()
1153 auto CODD = llvm::make_unique<COFFObjectDumpDelegate>(*this, Section, Obj, in printCodeViewSymbolsSubsection()
1232 for (const SectionRef &S : Obj->sections()) { in mergeCodeViewTypes()
1262 W.printNumber("Section", SectionName, Obj->getSectionID(Section)); in printCodeViewTypeSection()
1285 for (const SectionRef &Sec : Obj->sections()) { in printSectionHeaders()
1287 const coff_section *Section = Obj->getCOFFSection(Sec); in printSectionHeaders()
1315 for (const SymbolRef &Symbol : Obj->symbols()) { in printSectionHeaders()
1337 for (const SectionRef &Section : Obj->sections()) { in printRelocations()
1369 if (Symbol != Obj->symbol_end()) { in printRelocation()
1373 SymbolIndex = Obj->getSymbolIndex(Obj->getCOFFSymbol(*Symbol)); in printRelocation()
1395 for (const SymbolRef &Symbol : Obj->symbols()) in printSymbols()
1402 getSectionName(const llvm::object::COFFObjectFile *Obj, int32_t SectionNumber, in getSectionName() argument
1406 if (std::error_code EC = Obj->getSectionName(Section, SectionName)) in getSectionName()
1422 COFFSymbolRef Symbol = Obj->getCOFFSymbol(Sym); in printSymbol()
1424 if (std::error_code EC = Obj->getSection(Symbol.getSectionNumber(), Section)) { in printSymbol()
1431 if (Obj->getSymbolName(Symbol, SymbolName)) in printSymbol()
1436 getSectionName(Obj, Symbol.getSectionNumber(), Section); in printSymbol()
1453 error(getSymbolAuxData(Obj, Symbol, I, Aux)); in printSymbol()
1463 error(getSymbolAuxData(Obj, Symbol, I, Aux)); in printSymbol()
1465 Expected<COFFSymbolRef> Linked = Obj->getSymbol(Aux->TagIndex); in printSymbol()
1468 if (EC || (EC = Obj->getSymbolName(*Linked, LinkedName))) { in printSymbol()
1480 error(getSymbolAuxData(Obj, Symbol, I, FileName)); in printSymbol()
1485 Obj->getSymbolTableEntrySize()); in printSymbol()
1490 error(getSymbolAuxData(Obj, Symbol, I, Aux)); in printSymbol()
1506 std::error_code EC = Obj->getSection(AuxNumber, Assoc); in printSymbol()
1507 ErrorOr<StringRef> Res = getSectionName(Obj, AuxNumber, Assoc); in printSymbol()
1521 error(getSymbolAuxData(Obj, Symbol, I, Aux)); in printSymbol()
1524 Obj->getSymbol(Aux->SymbolTableIndex); in printSymbol()
1527 if (EC || (EC = Obj->getSymbolName(*ReferredSym, ReferredName))) { in printSymbol()
1545 switch (Obj->getMachine()) { in printUnwindInfo()
1554 Win64EH::Dumper::Context Ctx(*Obj, Resolver, this); in printUnwindInfo()
1560 ARM::WinEH::Decoder Decoder(W, Obj->getMachine() == in printUnwindInfo()
1562 Decoder.dumpProcedureData(*Obj); in printUnwindInfo()
1566 W.printEnum("unsupported Image Machine", Obj->getMachine(), in printUnwindInfo()
1578 for (const ImportDirectoryEntryRef &DirRef : Obj->import_directories()) { in printNeededLibraries()
1621 for (const ImportDirectoryEntryRef &I : Obj->import_directories()) { in printCOFFImports()
1641 for (const DelayImportDirectoryEntryRef &I : Obj->delay_import_directories()) { in printCOFFImports()
1659 for (const ExportDirectoryEntryRef &E : Obj->export_directories()) { in printCOFFExports()
1676 for (const SectionRef &Section : Obj->sections()) { in printCOFFDirectives()
1705 for (const BaseRelocRef &I : Obj->base_relocs()) { in printCOFFBaseReloc()
1718 for (const SectionRef &S : Obj->sections()) { in printCOFFResources()
1733 Obj->getCOFFSection(S)->PointerToRawData); in printCOFFResources()
1839 for (auto Sec : Obj->sections()) { in printStackMap()
1857 if (Obj->isLittleEndian()) in printStackMap()
1867 for (auto Sec : Obj->sections()) { in printAddrsig()
1895 Expected<COFFSymbolRef> Sym = Obj->getSymbol(SymIndex); in printAddrsig()
1898 if (EC || (EC = Obj->getSymbolName(*Sym, SymName))) { in printAddrsig()