glsl: Hide many classes local to individual .cpp files in anon namespaces.
authorEric Anholt <eric@anholt.net>
Fri, 20 Sep 2013 18:03:44 +0000 (11:03 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 23 Sep 2013 19:45:22 +0000 (12:45 -0700)
commit10ef949424809d51c627008bb2feab5a067f8e08
tree2433777d7bf49ae1642621e915c0e66fdc96a123
parent07572621bc4515c71c56754a2bd9c7c832653d2b
glsl: Hide many classes local to individual .cpp files in anon namespaces.

This gives the compiler the chance to inline and not export class symbols
even in the absence of LTO.  Saves about 60kb on disk.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@.intel.com>
33 files changed:
src/glsl/builtin_functions.cpp
src/glsl/ir_function_detect_recursion.cpp
src/glsl/ir_import_prototypes.cpp
src/glsl/ir_reader.cpp
src/glsl/ir_set_program_inouts.cpp
src/glsl/ir_validate.cpp
src/glsl/link_functions.cpp
src/glsl/link_uniform_blocks.cpp
src/glsl/link_uniforms.cpp
src/glsl/link_varyings.cpp
src/glsl/linker.cpp
src/glsl/loop_analysis.cpp
src/glsl/loop_controls.cpp
src/glsl/loop_unroll.cpp
src/glsl/lower_clip_distance.cpp
src/glsl/lower_discard.cpp
src/glsl/lower_discard_flow.cpp
src/glsl/lower_if_to_cond_assign.cpp
src/glsl/lower_instructions.cpp
src/glsl/lower_jumps.cpp
src/glsl/lower_mat_op_to_vec.cpp
src/glsl/lower_named_interface_blocks.cpp
src/glsl/lower_output_reads.cpp
src/glsl/lower_packed_varyings.cpp
src/glsl/lower_texture_projection.cpp
src/glsl/lower_variable_index_to_cond_assign.cpp
src/glsl/lower_vec_index_to_cond_assign.cpp
src/glsl/lower_vec_index_to_swizzle.cpp
src/glsl/lower_vector.cpp
src/glsl/lower_vector_insert.cpp
src/glsl/opt_array_splitting.cpp
src/glsl/opt_dead_builtin_varyings.cpp
src/mesa/program/ir_to_mesa.cpp