Moved print_whole_ir() up next to print_ir().
authorRyan C. Gordon <icculus@icculus.org>
Sun, 20 Mar 2011 12:24:38 -0700
changeset 1016 9c082b107efe
parent 1015 87c39e720f36
child 1017 5034d40d718a
Moved print_whole_ir() up next to print_ir().
mojoshader_compiler.c
--- a/mojoshader_compiler.c	Sun Mar 20 01:44:39 2011 -0700
+++ b/mojoshader_compiler.c	Sun Mar 20 12:24:38 2011 -0700
@@ -5819,6 +5819,19 @@
     } // switch
 } // print_ir
 
+static void print_whole_ir(Context *ctx, FILE *io)
+{
+    if (ctx->ir != NULL)
+    {
+        int i;
+        for (i = 0; i <= ctx->user_func_index; i++)
+        {
+            printf("[FUNCTION %d ]\n", i);
+            print_ir(io, 1, ctx->ir[i]);
+        } // for
+    } // if
+} // print_whole_ir
+
 static void delete_ir(Context *ctx, void *_ir)
 {
     MOJOSHADER_irNode *ir = (MOJOSHADER_irNode *) _ir;
@@ -5896,21 +5909,6 @@
     Free(ctx, ir);
 } // delete_ir
 
-
-static void print_whole_ir(Context *ctx, FILE *io)
-{
-    if (ctx->ir != NULL)
-    {
-        int i;
-        for (i = 0; i <= ctx->user_func_index; i++)
-        {
-            printf("[FUNCTION %d ]\n", i);
-            print_ir(io, 1, ctx->ir[i]);
-        } // for
-    } // if
-} // print_whole_ir
-
-
 static void intermediate_representation(Context *ctx)
 {
     const MOJOSHADER_astCompilationUnit *ast = NULL;