AArch64: Refactor err_type.
authorTamar Christina <tamar.christina@arm.com>
Wed, 3 Oct 2018 17:35:15 +0000 (18:35 +0100)
committerTamar Christina <tamar.christina@arm.com>
Wed, 3 Oct 2018 17:36:30 +0000 (18:36 +0100)
commit1d4823943d92e7fccb0616f885c029d9952cfb0e
treef0f117535ae9a23e44db11a8681765fcd82d2232
parent7e84b55d8f973b011f55f604a76c2d1d989d0b6b
AArch64: Refactor err_type.

Previously the ERR_ values were defined as different constants, to make this a
bit more type safe and so they can be more easily re-used I'm changing them into
an actual enum and updating any usages.

include/

* opcode/aarch64.h (enum err_type): New.
(aarch64_decode_insn): Use it.

opcodes/

* aarch64-dis.c (ERR_OK, ERR_UND, ERR_UNP, ERR_NYI): Remove.
(aarch64_decode_insn, print_insn_aarch64_word): Use err_type.
include/ChangeLog
include/opcode/aarch64.h
opcodes/ChangeLog
opcodes/aarch64-dis.c
This page took 0.024828 seconds and 4 git commands to generate.