parser: Anonymous constants come from the PROGRAM_CONSTANT file

This commit is contained in:
Ian Romanick 2009-07-22 10:51:18 -07:00
parent 770cebbc29
commit 69d3d19b54
2 changed files with 202 additions and 198 deletions

File diff suppressed because it is too large Load diff

View file

@ -590,7 +590,9 @@ srcReg: IDENTIFIER /* temporaryReg | progParamSingle */
| paramSingleItemUse
{
init_src_reg(& $$);
$$.Base.File = $1.param_binding_type;
$$.Base.File = ($1.name != NULL)
? $1.param_binding_type
: PROGRAM_CONSTANT;
$$.Base.Index = $1.param_binding_begin;
}
;