glsl_type::generate_constructor_prototype now generates the function too

Also, change the name of the method to generate_constructor.
This commit is contained in:
Ian Romanick
2010-04-23 13:21:22 -07:00
parent 85ba37b97d
commit 82baaf4283
3 changed files with 35 additions and 6 deletions
+2 -3
View File
@@ -271,11 +271,10 @@ process_array_constructor(exec_list *instructions,
ir_function *f = state->symbols->get_function(constructor_type->name);
/* If the constructor for this type of array does not exist, generate the
* prototype and add it to the symbol table. The code will be generated
* later.
* prototype and add it to the symbol table.
*/
if (f == NULL) {
f = constructor_type->generate_constructor_prototype(state->symbols);
f = constructor_type->generate_constructor(state->symbols);
}
ir_rvalue *const r =