From 7dd6adbe2e791b22de97175a8715ef1217619c99 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 7 Apr 2010 16:56:57 -0700 Subject: Refactor ir_expression::get_num_operands. A new static version takes an ir_expression_operation enum, and the original non-static version now uses it. This will make it easier to read operations (where the ir_expression doesn't yet exist). --- ir.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ir.h') diff --git a/ir.h b/ir.h index c93c043f5e5..892455e1dee 100644 --- a/ir.h +++ b/ir.h @@ -471,7 +471,11 @@ public: ir_expression(int op, const struct glsl_type *type, ir_rvalue *, ir_rvalue *); - unsigned int get_num_operands(void); + static unsigned int get_num_operands(ir_expression_operation); + unsigned int get_num_operands() + { + return get_num_operands(operation); + } virtual void accept(ir_visitor *v) { -- cgit v1.2.3