| 171 | } |
| 172 | |
| 173 | Error format_register( |
| 174 | String& sb, |
| 175 | FormatFlags format_flags, |
| 176 | const BaseEmitter* emitter, |
| 177 | Arch arch, |
| 178 | RegType reg_type, |
| 179 | uint32_t reg_id) noexcept { |
| 180 | |
| 181 | #if !defined(ASMJIT_NO_X86) |
| 182 | if (Environment::is_family_x86(arch)) { |
| 183 | return x86::FormatterInternal::format_register(sb, format_flags, emitter, arch, reg_type, reg_id); |
| 184 | } |
| 185 | #endif |
| 186 | |
| 187 | #if !defined(ASMJIT_NO_AARCH64) |
| 188 | if (Environment::is_family_arm(arch)) { |
| 189 | return arm::FormatterInternal::format_register(sb, format_flags, emitter, arch, reg_type, reg_id); |
| 190 | } |
| 191 | #endif |
| 192 | |
| 193 | return make_error(Error::kInvalidArch); |
| 194 | } |
| 195 | |
| 196 | Error format_operand( |
| 197 | String& sb, |
no test coverage detected