summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-08-27 13:53:25 -0700
committerIan Romanick <[email protected]>2010-09-03 11:55:21 -0700
commit351525d534268b08c090f9ce42a67e9329a969ae (patch)
treef6133719f45c2c2b26a705937e69e2afc8dcde69 /src/glsl/ir.h
parent79082b8aca130ecdcaa1167a9961c16fc620f423 (diff)
ir_expression: Add static operator_string method
I've used this in quite a few debug commits that never reached an up-stream tree.
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r--src/glsl/ir.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index cf3a882f079..efe59d80642 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -731,6 +731,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.
*/
static ir_expression_operation get_operator(const char *);