From 10ef949424809d51c627008bb2feab5a067f8e08 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 20 Sep 2013 11:03:44 -0700 Subject: 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 Reviewed-by: Ian Romanick --- src/glsl/link_uniform_blocks.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/glsl/link_uniform_blocks.cpp') diff --git a/src/glsl/link_uniform_blocks.cpp b/src/glsl/link_uniform_blocks.cpp index d9607584970..72d6c5323a6 100644 --- a/src/glsl/link_uniform_blocks.cpp +++ b/src/glsl/link_uniform_blocks.cpp @@ -29,6 +29,8 @@ #include "main/hash_table.h" #include "program.h" +namespace { + class ubo_visitor : public program_resource_visitor { public: ubo_visitor(void *mem_ctx, gl_uniform_buffer_variable *variables, @@ -147,6 +149,8 @@ private: } }; +} /* anonymous namespace */ + struct block { const glsl_type *type; bool has_instance_name; -- cgit v1.2.3