Move top-level AST to HIR conversion to _mesa_ast_to_hir
diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp
index 222f06b..d066ca3c 100644
--- a/glsl_parser_extras.cpp
+++ b/glsl_parser_extras.cpp
@@ -718,9 +718,7 @@
       ((ast_node *)ptr)->print();
    }
 
-   foreach (ptr, & state.translation_unit) {
-      ((ast_node *)ptr)->hir(&instructions, &state);
-   }
+   _mesa_ast_to_hir(&instructions, &state);
 
    printf("\n\n");
    foreach_iter(exec_list_iterator, iter, instructions) {