assembler: Add location support

Let's generate location information about the tokens we are parsing.
This can be used to give accurate location when reporting errors and
warnings.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau
2013-01-26 19:51:28 +00:00
parent 574a249142
commit d94e8a6cf0
2 changed files with 19 additions and 6 deletions
+1
View File
@@ -276,6 +276,7 @@ static void resolve_subnr(struct brw_reg *reg)
%}
%locations
%start ROOT