This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] d30v: make var type operatorT
- From: tbsaunde+binutils at tbsaunde dot org
- To: binutils at sourceware dot org
- Cc: Trevor Saunders <tbsaunde+binutils at tbsaunde dot org>
- Date: Mon, 23 May 2016 02:58:50 -0400
- Subject: [PATCH] d30v: make var type operatorT
- Authentication-results: sourceware.org; auth=none
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