mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
9afd09598c
Fulfilling a certain six-year-old todo.
27 lines
484 B
C++
27 lines
484 B
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <iosfwd>
|
|
#include <memory>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
class HostDisassembler
|
|
{
|
|
public:
|
|
enum class Platform
|
|
{
|
|
x86_64,
|
|
aarch64,
|
|
};
|
|
|
|
virtual ~HostDisassembler() = default;
|
|
|
|
static std::unique_ptr<HostDisassembler> Factory(Platform arch);
|
|
|
|
virtual std::size_t Disassemble(const u8* begin, const u8* end, std::ostream& stream);
|
|
};
|