[PATCH] d30v: make var type operatorT
tbsaunde+binutils@tbsaunde.org
tbsaunde+binutils@tbsaunde.org
Mon May 23 06:52:00 GMT 2016
From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
Hi,
Another place where using the enum type seems clearer than int.
built and regtested d30v-elf, ok?
Trev
gas/ChangeLog:
2016-05-23 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-d30v.c (find_format): Change type of X_op to operatorT.
---
gas/config/tc-d30v.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gas/config/tc-d30v.c b/gas/config/tc-d30v.c
index 88fc124..8961e49 100644
--- a/gas/config/tc-d30v.c
+++ b/gas/config/tc-d30v.c
@@ -1158,7 +1158,7 @@ find_format (struct d30v_opcode *opcode,
{
int flags = d30v_operand_table[fm->operands[j]].flags;
int bits = d30v_operand_table[fm->operands[j]].bits;
- int X_op = myops[j].X_op;
+ operatorT X_op = myops[j].X_op;
int num = myops[j].X_add_number;
if (flags & OPERAND_SPECIAL)
--
2.8.1
More information about the Binutils
mailing list