[obj2yaml] Recognize input file format using llvm::object::ObjectFile