diff mbox

[2/2] rename add_uniop() to add_unop()

Message ID 20180622210651.23555-3-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show

Commit Message

Luc Van Oostenryck June 22, 2018, 9:06 p.m. UTC
Everywhere else in the code and comments 'unop' is used as short
for 'unary op'.

So, use 'unop' also for this function.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 linearize.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/linearize.c b/linearize.c
index ce6b91b74..faec8c9d1 100644
--- a/linearize.c
+++ b/linearize.c
@@ -1086,7 +1086,7 @@  static pseudo_t linearize_inc_dec(struct entrypoint *ep, struct expression *expr
 	return postop ? old : new;
 }
 
-static pseudo_t add_uniop(struct entrypoint *ep, struct symbol *ctype, int op, pseudo_t src)
+static pseudo_t add_unop(struct entrypoint *ep, struct symbol *ctype, int op, pseudo_t src)
 {
 	struct instruction *insn = alloc_typed_instruction(op, ctype);
 	pseudo_t new = alloc_pseudo(insn);
@@ -1123,9 +1123,9 @@  static pseudo_t linearize_regular_preop(struct entrypoint *ep, struct expression
 		return add_binary_op(ep, ctype, OP_SET_EQ, pre, zero);
 	}
 	case '~':
-		return add_uniop(ep, ctype, OP_NOT, pre);
+		return add_unop(ep, ctype, OP_NOT, pre);
 	case '-':
-		return add_uniop(ep, ctype, opcode_float(OP_NEG, ctype), pre);
+		return add_unop(ep, ctype, opcode_float(OP_NEG, ctype), pre);
 	}
 	return VOID;
 }