Begin tracking the nesting of loops and switch-statements

This commit is contained in:
Ian Romanick
2010-04-05 17:01:53 -07:00
parent c0e76d8352
commit e9d0f265aa
3 changed files with 14 additions and 0 deletions

View File

@@ -56,6 +56,9 @@ struct _mesa_glsl_parse_state {
/** Index of last generated anonymous temporary. */
unsigned temp_index;
/** Loop or switch statement containing the current instructions. */
class ir_instruction *loop_or_switch_nesting;
};
typedef struct YYLTYPE {