glsl: Put a bunch of optimization visitors under anonymous namespaces.
[mesa.git] / src / glsl / opt_constant_variable.cpp
index f3bc8675efd2a5b5350029d0189ffc6a68f4d2ae..1bbaf8e4792085c520c80ca1a05fb3f2e0bf667f 100644 (file)
@@ -37,6 +37,8 @@
 #include "ir_optimization.h"
 #include "glsl_types.h"
 
+namespace {
+
 struct assignment_entry {
    exec_node link;
    int assignment_count;
@@ -55,6 +57,8 @@ public:
    exec_list list;
 };
 
+} /* unnamed namespace */
+
 static struct assignment_entry *
 get_assignment_entry(ir_variable *var, exec_list *list)
 {