finally drop ugly support for using arch as handle in cs_reg_name(). this doesnt change API
diff --git a/cs.c b/cs.c
index e363403..bf8f3d6 100644
--- a/cs.c
+++ b/cs.c
@@ -335,16 +335,6 @@
return NULL;
}
- // x86 flags register must be specially handled
- if ((handle->arch == CS_ARCH_X86) && (reg == X86_REG_FLAGS)) {
- if (handle->mode & CS_MODE_64)
- return "rflags";
- if (handle->mode & CS_MODE_32)
- return "eflags";
- if (handle->mode & CS_MODE_16)
- return "flags";
- }
-
return handle->reg_name(reg);
}