[dynarmic] Add a formatter for `Dynarmic::IR::Opcode` (#2948)
fa6dcae702/games-emulation/eden/files/eden-0.0.4_rc1-add-a-formatter-for-Dynarmic-IR-Opcode.patch
Co-authored-by: Pavel Sobolev <contact@paveloom.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2948
This commit is contained in:
parent
82a476d458
commit
4bf2e0a7aa
|
|
@ -654,3 +654,11 @@ constexpr bool MayGetNZCVFromOp(const Opcode op) noexcept {
|
|||
}
|
||||
|
||||
} // namespace Dynarmic::IR
|
||||
|
||||
template<>
|
||||
struct fmt::formatter<Dynarmic::IR::Opcode> : fmt::formatter<std::string_view> {
|
||||
template<typename FormatContext>
|
||||
auto format(Dynarmic::IR::Opcode op, FormatContext& ctx) const {
|
||||
return formatter<std::string_view>::format(GetNameOf(op), ctx);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue