Don't generate vector defs if the vector's name starts with a # because that's an 'IMMEDIATE'

This commit is contained in:
Wolfgang Bumiller 2012-12-23 10:14:25 +01:00
parent d51a6ab3db
commit 55117912ab

2
ir.c
View file

@ -3185,7 +3185,7 @@ static void gen_vector_defs(prog_section_def def, const char *name)
char *component;
size_t len, i;
if (!name || OPTS_FLAG(SINGLE_VECTOR_DEFS))
if (!name || name[0] == '#' || OPTS_FLAG(SINGLE_VECTOR_DEFS))
return;
def.type = TYPE_FLOAT;