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/lower_vector_insert.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/glsl/lower_vector_insert.cpp') diff --git a/src/glsl/lower_vector_insert.cpp b/src/glsl/lower_vector_insert.cpp index 0e640cc3240..6d7cfa94262 100644 --- a/src/glsl/lower_vector_insert.cpp +++ b/src/glsl/lower_vector_insert.cpp @@ -27,6 +27,8 @@ using namespace ir_builder; +namespace { + class vector_insert_visitor : public ir_rvalue_visitor { public: vector_insert_visitor(bool lower_nonconstant_index) @@ -48,6 +50,7 @@ public: bool lower_nonconstant_index; }; +} /* anonymous namespace */ void vector_insert_visitor::handle_rvalue(ir_rvalue **rv) -- cgit v1.2.3