Lines Matching refs:Obj
161 resolveSectionAndAddress(const COFFObjectFile *Obj, const SymbolRef &Sym, in resolveSectionAndAddress() argument
171 ResolvedSection = Obj->getCOFFSection(**Iter); in resolveSectionAndAddress()
196 getSectionContents(const COFFObjectFile *Obj, in getSectionContents() argument
203 if (std::error_code EC = resolveSectionAndAddress(Obj, Sym, Section, Addr)) in getSectionContents()
205 if (std::error_code EC = Obj->getSectionContents(Section, Contents)) in getSectionContents()
239 printSEHTable(const COFFObjectFile *Obj, uint32_t TableVA, int Count) { in printSEHTable() argument
244 error(Obj->getPE32Header(PE32Header)); in printSEHTable()
247 error(Obj->getVaPtr(TableVA, IntPtr)); in printSEHTable()
276 static void printTLSDirectory(const COFFObjectFile *Obj) { in printTLSDirectory() argument
278 error(Obj->getPE32Header(PE32Header)); in printTLSDirectory()
281 error(Obj->getPE32PlusHeader(PE32PlusHeader)); in printTLSDirectory()
288 error(Obj->getDataDirectory(COFF::TLS_TABLE, DataDir)); in printTLSDirectory()
292 error(Obj->getRvaPtr(DataDir->RelativeVirtualAddress, IntPtr)); in printTLSDirectory()
305 static void printLoadConfiguration(const COFFObjectFile *Obj) { in printLoadConfiguration() argument
308 error(Obj->getPE32Header(PE32Header)); in printLoadConfiguration()
313 if (Obj->getMachine() != COFF::IMAGE_FILE_MACHINE_I386) in printLoadConfiguration()
317 error(Obj->getDataDirectory(COFF::LOAD_CONFIG_TABLE, DataDir)); in printLoadConfiguration()
321 error(Obj->getRvaPtr(DataDir->RelativeVirtualAddress, IntPtr)); in printLoadConfiguration()
343 printSEHTable(Obj, LoadConf->SEHandlerTable, LoadConf->SEHandlerCount); in printLoadConfiguration()
349 static void printImportTables(const COFFObjectFile *Obj) { in printImportTables() argument
350 import_directory_iterator I = Obj->import_directory_begin(); in printImportTables()
351 import_directory_iterator E = Obj->import_directory_end(); in printImportTables()
355 for (const ImportDirectoryEntryRef &DirRef : Obj->import_directories()) { in printImportTables()
385 if (Obj->getHintName(HintNameRVA, Hint, Name)) in printImportTables()
395 static void printExportTable(const COFFObjectFile *Obj) { in printExportTable() argument
397 export_directory_iterator I = Obj->export_directory_begin(); in printExportTable()
398 export_directory_iterator E = Obj->export_directory_end(); in printExportTable()
447 static bool getPDataSection(const COFFObjectFile *Obj, in getPDataSection() argument
450 for (const SectionRef &Section : Obj->sections()) { in getPDataSection()
456 const coff_section *Pdata = Obj->getCOFFSection(Section); in getPDataSection()
464 error(Obj->getSectionContents(Pdata, Contents)); in getPDataSection()
517 static void printRuntimeFunction(const COFFObjectFile *Obj, in printRuntimeFunction() argument
529 if (Obj->getRvaPtr(RF.UnwindInfoOffset, addr)) in printRuntimeFunction()
540 static void printRuntimeFunctionRels(const COFFObjectFile *Obj, in printRuntimeFunctionRels() argument
569 Obj, Rels, SectionOffset + in printRuntimeFunctionRels()
584 void llvm::printCOFFUnwindInfo(const COFFObjectFile *Obj) { in printCOFFUnwindInfo() argument
585 if (Obj->getMachine() != COFF::IMAGE_FILE_MACHINE_AMD64) { in printCOFFUnwindInfo()
594 if (!getPDataSection(Obj, Rels, RFStart, NumRFs)) in printCOFFUnwindInfo()
601 printRuntimeFunction(Obj, RF); in printCOFFUnwindInfo()
608 printRuntimeFunctionRels(Obj, RF, SectionOffset, Rels); in printCOFFUnwindInfo()
612 void llvm::printCOFFFileHeader(const object::ObjectFile *Obj) { in printCOFFFileHeader() argument
613 const COFFObjectFile *file = dyn_cast<const COFFObjectFile>(Obj); in printCOFFFileHeader()