Lines Matching refs:Obj
160 static error_code resolveSectionAndAddress(const COFFObjectFile *Obj,
165 section_iterator iter(Obj->begin_sections());
167 ResolvedSection = Obj->getCOFFSection(iter);
192 static error_code getSectionContents(const COFFObjectFile *Obj,
200 if (error_code ec = resolveSectionAndAddress(Obj, Sym, Section, Addr))
202 if (error_code ec = Obj->getSectionContents(Section, Contents)) return ec;
232 static void printImportTables(const COFFObjectFile *Obj) {
235 for (import_directory_iterator i = Obj->import_directory_begin(),
236 e = Obj->import_directory_end();
264 if (Obj->getHintName(entry->getHintNameRVA(), Hint, Name))
272 void llvm::printCOFFUnwindInfo(const COFFObjectFile *Obj) {
274 if (error(Obj->getCOFFHeader(Header))) return;
285 for (section_iterator SI = Obj->begin_sections(),
286 SE = Obj->end_sections();
295 Pdata = Obj->getCOFFSection(SI);
308 if (error(Obj->getSectionContents(Pdata, Contents))) continue;
340 if (error(getSectionContents(Obj, Rels, SectionOffset +
399 void llvm::printCOFFFileHeader(const object::ObjectFile *Obj) {
400 printImportTables(dyn_cast<const COFFObjectFile>(Obj));