diff options
author | Ian Romanick <[email protected]> | 2010-03-10 13:26:52 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-03-10 13:26:52 -0800 |
commit | 7cfddf19413ef61fcf1450bd61e9ece4cf1735a4 (patch) | |
tree | 06b923d30e32acb0a7e071df8c858103b0f2342a /ast.h | |
parent | d10fe19495191072d39689337700b69e62252bf1 (diff) |
Make ast_function_expression subclass of ast_expression
Diffstat (limited to 'ast.h')
-rw-r--r-- | ast.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -192,6 +192,23 @@ public: virtual void print(void) const; }; +/** + * Subclass of expressions for function calls + */ +class ast_function_expression : public ast_expression { +public: + ast_function_expression(ast_node *callee) + : ast_expression(ast_function_call, (ast_expression *) callee, + NULL, NULL) + { + /* empty */ + } + + + virtual ir_instruction *hir(exec_list *instructions, + struct _mesa_glsl_parse_state *state); +}; + /** * Number of possible operators for an ast_expression |