Home | History | Annotate | Download | only in llvm-readobj

Lines Matching refs:Obj

280 static std::error_code createDumper(const ObjectFile *Obj, StreamWriter &Writer,
282 if (!Obj)
285 if (Obj->isCOFF())
286 return createCOFFDumper(Obj, Writer, Result);
287 if (Obj->isELF())
288 return createELFDumper(Obj, Writer, Result);
289 if (Obj->isMachO())
290 return createMachODumper(Obj, Writer, Result);
296 static void dumpObject(const ObjectFile *Obj) {
299 if (std::error_code EC = createDumper(Obj, Writer, Dumper))
300 reportError(Obj->getFileName(), EC);
303 outs() << "File: " << Obj->getFileName() << "\n";
304 outs() << "Format: " << Obj->getFileFormatName() << "\n";
306 << Triple::getArchTypeName((llvm::Triple::ArchType)Obj->getArch())
308 outs() << "AddressSize: " << (8*Obj->getBytesInAddress()) << "bit\n";
337 if (Obj->getArch() == llvm::Triple::arm && Obj->isELF())
340 if (isMipsArch(Obj->getArch()) && Obj->isELF()) {
348 if (Obj->isCOFF()) {
360 if (Obj->isMachO()) {
392 if (ObjectFile *Obj = dyn_cast<ObjectFile>(&*ChildOrErr.get()))
393 dumpObject(Obj);
401 for (const MachOUniversalBinary::ObjectForArch &Obj : UBinary->objects()) {
402 ErrorOr<std::unique_ptr<MachOObjectFile>> ObjOrErr = Obj.getAsObjectFile();
405 else if (ErrorOr<std::unique_ptr<Archive>> AOrErr = Obj.getAsArchive())
426 else if (ObjectFile *Obj = dyn_cast<ObjectFile>(&Binary))
427 dumpObject(Obj);