glsl: Put a bunch of optimization visitors under anonymous namespaces.
[mesa.git] / src / glsl / opt_function_inlining.cpp
index 4ff4d97d9bcb707e0474f9f2d49532249a59ed8a..f9f5bd44267f4e3e411d423e56469b7d7c72a4f7 100644 (file)
@@ -39,6 +39,8 @@ do_sampler_replacement(exec_list *instructions,
                       ir_variable *sampler,
                       ir_dereference *deref);
 
+namespace {
+
 class ir_function_inlining_visitor : public ir_hierarchical_visitor {
 public:
    ir_function_inlining_visitor()
@@ -60,6 +62,7 @@ public:
    bool progress;
 };
 
+} /* unnamed namespace */
 
 bool
 do_function_inlining(exec_list *instructions)