glsl/mesa: remove unused namespace support from the symbol table
authorTimothy Arceri <timothy.arceri@collabora.com>
Fri, 21 Oct 2016 05:50:52 +0000 (16:50 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Mon, 24 Oct 2016 10:40:39 +0000 (21:40 +1100)
commit6dbe8a1b9fd750b4c1bb600a0bb43129d95e6eca
treee94d879f69543871534f59c3ffbfb6adf49efdce
parent907ace57986733add2aebfa9dd7c83c67efed70e
glsl/mesa: remove unused namespace support from the symbol table

Namespace support seems to have been unused for a very long time.

Previously the hash table entry was never removed and the symbol name
wasn't freed until the symbol table was destroyed.

In theory this could reduced the number of times we need to copy a string
as duplicate names are reused. However in practice there is likely only a
limited number of symbols that are the same and this is likely to cause
other less than optimal behaviour such as the hash_table continuously
growing.

Along with dropping namespace support this change removes entries from
the hash table as they become unused.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/compiler/glsl/glsl_symbol_table.cpp
src/compiler/glsl/ir_print_visitor.cpp
src/mesa/program/program_lexer.l
src/mesa/program/program_parse.y
src/mesa/program/symbol_table.c
src/mesa/program/symbol_table.h