Lines Matching refs:Obj

161 resolveSectionAndAddress(const COFFObjectFile *Obj, const SymbolRef &Sym,
166 section_iterator iter(Obj->section_begin());
169 ResolvedSection = Obj->getCOFFSection(*iter);
196 getSectionContents(const COFFObjectFile *Obj,
203 if (std::error_code EC = resolveSectionAndAddress(Obj, Sym, Section, Addr))
205 if (std::error_code EC = Obj->getSectionContents(Section, Contents))
237 printSEHTable(const COFFObjectFile *Obj, uint32_t TableVA, int Count) {
242 if (error(Obj->getPE32Header(PE32Header)))
246 if (error(Obj->getVaPtr(TableVA, IntPtr)))
255 static void printLoadConfiguration(const COFFObjectFile *Obj) {
258 if (error(Obj->getPE32Header(PE32Header)))
264 if (error(Obj->getCOFFHeader(Header)))
271 if (error(Obj->getDataDirectory(COFF::LOAD_CONFIG_TABLE, DataDir)))
276 if (error(Obj->getRvaPtr(DataDir->RelativeVirtualAddress, IntPtr)))
299 printSEHTable(Obj, LoadConf->SEHandlerTable, LoadConf->SEHandlerCount);
305 static void printImportTables(const COFFObjectFile *Obj) {
306 import_directory_iterator I = Obj->import_directory_begin();
307 import_directory_iterator E = Obj->import_directory_end();
335 if (Obj->getHintName(entry->getHintNameRVA(), Hint, Name))
345 static void printExportTable(const COFFObjectFile *Obj) {
347 export_directory_iterator I = Obj->export_directory_begin();
348 export_directory_iterator E = Obj->export_directory_end();
380 static bool getPDataSection(const COFFObjectFile *Obj,
383 for (const SectionRef &Section : Obj->sections()) {
390 const coff_section *Pdata = Obj->getCOFFSection(Section);
398 if (error(Obj->getSectionContents(Pdata, Contents)))
450 /// Prints out the given RuntimeFunction struct for x64, assuming that Obj is
452 static void printRuntimeFunction(const COFFObjectFile *Obj,
464 if (Obj->getRvaPtr(RF.UnwindInfoOffset, addr))
469 /// Prints out the given RuntimeFunction struct for x64, assuming that Obj is
475 static void printRuntimeFunctionRels(const COFFObjectFile *Obj,
504 Obj, Rels, SectionOffset +
520 void llvm::printCOFFUnwindInfo(const COFFObjectFile *Obj) {
522 if (error(Obj->getCOFFHeader(Header)))
534 if (!getPDataSection(Obj, Rels, RFStart, NumRFs))
541 printRuntimeFunction(Obj, RF);
548 printRuntimeFunctionRels(Obj, RF, SectionOffset, Rels);
552 void llvm::printCOFFFileHeader(const object::ObjectFile *Obj) {
553 const COFFObjectFile *file = dyn_cast<const COFFObjectFile>(Obj);