glsl/build: Build libglcpp and libglslcore in builtin_compiler
[mesa.git] / src / glsl / opt_tree_grafting.cpp
index d86eab80e504698a50c9b26a7a557f325c8e2da1..25b18ea940c98246a15f84e9037f5561b940c71f 100644 (file)
@@ -54,6 +54,8 @@
 #include "ir_optimization.h"
 #include "glsl_types.h"
 
+namespace {
+
 static bool debug = false;
 
 class ir_tree_grafting_visitor : public ir_hierarchical_visitor {
@@ -369,6 +371,8 @@ tree_grafting_basic_block(ir_instruction *bb_first,
    }
 }
 
+} /* unnamed namespace */
+
 /**
  * Does a copy propagation pass on the code present in the instruction stream.
  */