glsl: Use ir_builder more in opt_algebraic.
[mesa.git] / src / glsl / link_uniform_blocks.cpp
index d9607584970f31c6643f175ca2ea1f62f36430cb..72d6c5323a6ebe90a4117bf4e8ac56eaa88d4df6 100644 (file)
@@ -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;