diff options
author | Ian Romanick <[email protected]> | 2015-04-15 17:55:32 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-08-30 16:28:00 -0700 |
commit | c6e8fd82ea118c66e69e4ad7967faec0715741aa (patch) | |
tree | 548a68d7abea31fc0f46ed2b093e249236d77a1b /src/compiler/glsl/ir.h | |
parent | fb44f69779ed7497768421ccd60e73cc707ffe69 (diff) |
glsl: Just access the ir_expression_operation strings table directly
The operator_string functions gave us some protection against a
malformed table. Now that the table is generated from the same data
that generates the enum, this is not a concern. Just cut out the middle
man.
text data bss dec hex filename
7531892 273992 28584 7834468 778b64 i965_dri-64bit-before.so
7531828 273992 28584 7834404 778b24 i965_dri-64bit-after.so
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir.h')
-rw-r--r-- | src/compiler/glsl/ir.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h index 5e1e9bf34c7..a3b1a50229f 100644 --- a/src/compiler/glsl/ir.h +++ b/src/compiler/glsl/ir.h @@ -1363,6 +1363,8 @@ public: #include "ir_expression_operation.h" +extern const char *const ir_expression_operation_strings[ir_last_opcode + 1]; + class ir_expression : public ir_rvalue { public: ir_expression(int op, const struct glsl_type *type, @@ -1430,17 +1432,6 @@ public: } /** - * Return a string representing this expression's operator. - */ - 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 *); |