Lines Matching refs:Obj
324 static std::error_code createDumper(const ObjectFile *Obj, in createDumper() argument
327 if (!Obj) in createDumper()
330 if (Obj->isCOFF()) in createDumper()
331 return createCOFFDumper(Obj, Writer, Result); in createDumper()
332 if (Obj->isELF()) in createDumper()
333 return createELFDumper(Obj, Writer, Result); in createDumper()
334 if (Obj->isMachO()) in createDumper()
335 return createMachODumper(Obj, Writer, Result); in createDumper()
341 static void dumpObject(const ObjectFile *Obj) { in dumpObject() argument
344 if (std::error_code EC = createDumper(Obj, Writer, Dumper)) in dumpObject()
345 reportError(Obj->getFileName(), EC); in dumpObject()
349 outs() << "File: " << Obj->getFileName() << "\n"; in dumpObject()
350 outs() << "Format: " << Obj->getFileFormatName() << "\n"; in dumpObject()
352 (llvm::Triple::ArchType)Obj->getArch()) << "\n"; in dumpObject()
353 outs() << "AddressSize: " << (8 * Obj->getBytesInAddress()) << "bit\n"; in dumpObject()
383 if (Obj->isELF()) { in dumpObject()
384 if (Obj->getArch() == llvm::Triple::arm) in dumpObject()
387 if (isMipsArch(Obj->getArch())) { in dumpObject()
402 if (Obj->isCOFF()) { in dumpObject()
418 if (Obj->isMachO()) { in dumpObject()
451 if (ObjectFile *Obj = dyn_cast<ObjectFile>(&*ChildOrErr.get())) in dumpArchive() local
452 dumpObject(Obj); in dumpArchive()
462 for (const MachOUniversalBinary::ObjectForArch &Obj : UBinary->objects()) { in dumpMachOUniversalBinary() local
463 Expected<std::unique_ptr<MachOObjectFile>> ObjOrErr = Obj.getAsObjectFile(); in dumpMachOUniversalBinary()
473 else if (Expected<std::unique_ptr<Archive>> AOrErr = Obj.getAsArchive()) in dumpMachOUniversalBinary()
492 else if (ObjectFile *Obj = dyn_cast<ObjectFile>(&Binary)) in dumpInput() local
493 dumpObject(Obj); in dumpInput()