glsl: Put a bunch of optimization visitors under anonymous namespaces.
[mesa.git] / src / glsl / opt_constant_folding.cpp
index dcad59997f1aaf698cf35bda1bec3010912acd93..7d94d481c9ff2823b6f52474b796b9e53ed14227 100644 (file)
@@ -32,6 +32,8 @@
 #include "ir_optimization.h"
 #include "glsl_types.h"
 
+namespace {
+
 /**
  * Visitor class for replacing expressions with ir_constant values.
  */
@@ -56,6 +58,8 @@ public:
    bool progress;
 };
 
+} /* unnamed namespace */
+
 void
 ir_constant_folding_visitor::handle_rvalue(ir_rvalue **rvalue)
 {