diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-19 17:08:05 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-19 17:08:05 -0700 |
commit | 41ec6a47ab81620bab9182f987e4bc4780e3a6ab (patch) | |
tree | cfff670b50211e1bf9f5fa4a8d273c63d553934f /glsl_parser_extras.h | |
parent | 16a246c049fa3c8d7841f87c8defdd0f26f302ee (diff) |
Track the function that is currently being defined
Later this will allow type checking for return statements.
Diffstat (limited to 'glsl_parser_extras.h')
-rw-r--r-- | glsl_parser_extras.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/glsl_parser_extras.h b/glsl_parser_extras.h index b3b3f868b1..dbe7c17302 100644 --- a/glsl_parser_extras.h +++ b/glsl_parser_extras.h @@ -43,6 +43,14 @@ struct _mesa_glsl_parse_state { unsigned language_version; enum _mesa_glsl_parser_targets target; + /** + * During AST to IR conversion, pointer to current IR function + * + * Will be \c NULL whenever the AST to IR conversion is not inside a + * function definition. + */ + class ir_function_signature *current_function; + /** Was there an error during compilation? */ bool error; }; |