glsl/parser: Allocate identifier inside classify_identifier
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 21 Sep 2017 17:14:04 +0000 (12:14 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 30 Oct 2017 16:27:09 +0000 (09:27 -0700)
commit4171900cf15f2c81a1f119e1fb92772f6c355199
tree638082b4b32b23ac41774eeeacd167f6d64b8112
parent792acfc44aabc09a19a1d2ef77369159ddb41e66
glsl/parser: Allocate identifier inside classify_identifier

Passing YYSTYPE into classify_identifier enables a later patch.

   text    data     bss     dec     hex filename
8310339  269336  294072 8873747  876713 32-bit i965_dri.so before
8275163  269336  294072 8838571  86ddab 32-bit i965_dri.so after
7845579  346552  420592 8612723  836b73 64-bit i965_dri.so before
7836963  346552  420592 8604107  8349cb 64-bit i965_dri.so after

Yes, the 64-bit binary shrinks by 8k.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/glsl/glsl_lexer.ll