glsl: Make the symbol table's add_function just use the function's name.

This commit is contained in:
Eric Anholt
2010-11-05 06:08:45 -07:00
parent 2927b6c212
commit e8f5ebf313
6 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -546,7 +546,7 @@ populate_symbol_table(gl_shader *sh)
ir_function *func;
if ((func = inst->as_function()) != NULL) {
sh->symbols->add_function(func->name, func);
sh->symbols->add_function(func);
} else if ((var = inst->as_variable()) != NULL) {
sh->symbols->add_variable(var->name, var);
}