diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-01-26 19:51:28 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-03-04 15:54:39 +0000 |
commit | d94e8a6cf0952e0a905699a47a50e57181fb414f (patch) | |
tree | 83058a98466637dcc2939ece276bd72ba272c47c /assembler/gram.y | |
parent | 574a249142f0b3140bda599326e581bb36b328da (diff) |
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>
Diffstat (limited to 'assembler/gram.y')
-rw-r--r-- | assembler/gram.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/assembler/gram.y b/assembler/gram.y index 8b56bd9a..9a4e5103 100644 --- a/assembler/gram.y +++ b/assembler/gram.y @@ -276,6 +276,7 @@ static void resolve_subnr(struct brw_reg *reg) %} +%locations %start ROOT |