From eb9a8206d5ba654494c5294e1b8199897ee4e4fc Mon Sep 17 00:00:00 2001 From: crueter Date: Thu, 16 Oct 2025 20:55:01 -0400 Subject: [PATCH] the humble string_view Signed-off-by: crueter --- src/dynarmic/src/dynarmic/ir/opcodes.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/dynarmic/src/dynarmic/ir/opcodes.h b/src/dynarmic/src/dynarmic/ir/opcodes.h index 7e41353213..e22ccce119 100644 --- a/src/dynarmic/src/dynarmic/ir/opcodes.h +++ b/src/dynarmic/src/dynarmic/ir/opcodes.h @@ -654,3 +654,13 @@ constexpr bool MayGetNZCVFromOp(const Opcode op) noexcept { } } // namespace Dynarmic::IR + +template<> +struct fmt::formatter : fmt::formatter +{ + template + auto format(Dynarmic::IR::Opcode op, FormatContext& ctx) const + { + return formatter::format(Dynarmic::IR::GetNameOf(op), ctx); + } +};