mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[qfcc] Create vector component symbols for parameters
This got lost when the stack frame setup was converted for Ruamoko.
This commit is contained in:
parent
211cd657e0
commit
abe43584ff
3 changed files with 6 additions and 1 deletions
|
@ -221,6 +221,9 @@ void free_temp_def (def_t *temp);
|
|||
*/
|
||||
void def_to_ddef (def_t *def, ddef_t *ddef, int aux);
|
||||
|
||||
void init_vector_components (struct symbol_s *vector_sym, int is_field,
|
||||
struct symtab_s *symtab);
|
||||
|
||||
/** Initialize a def referenced by the given symbol.
|
||||
|
||||
The symbol is checked for redefinition. A symbol is considered to be
|
||||
|
|
|
@ -412,7 +412,7 @@ init_elements (struct def_s *def, expr_t *eles)
|
|||
free_element_chain (&element_chain);
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
init_vector_components (symbol_t *vector_sym, int is_field, symtab_t *symtab)
|
||||
{
|
||||
expr_t *vector_expr;
|
||||
|
|
|
@ -542,6 +542,8 @@ create_param (symtab_t *parameters, symbol_t *param)
|
|||
param->s.def = def;
|
||||
param->sy_type = sy_var;
|
||||
symtab_addsymbol (parameters, param);
|
||||
if (is_vector(param->type) && options.code.vector_components)
|
||||
init_vector_components (param, 0, parameters);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue