From 351525d534268b08c090f9ce42a67e9329a969ae Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 27 Aug 2010 13:53:25 -0700 Subject: ir_expression: Add static operator_string method I've used this in quite a few debug commits that never reached an up-stream tree. --- src/glsl/ir.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/glsl/ir.h') diff --git a/src/glsl/ir.h b/src/glsl/ir.h index cf3a882f07..efe59d8064 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -730,6 +730,12 @@ public: */ const char *operator_string(); + /** + * Return a string representing this expression's operator. + */ + static const char *operator_string(ir_expression_operation); + + /** * Do a reverse-lookup to translate the given string into an operator. */ -- cgit v1.2.3