compile: move table computation after all global analysis
authorJean-Sebastien Gelinas <calestar@gmail.com>
Tue, 8 Sep 2009 15:30:29 +0000 (11:30 -0400)
committerJean Privat <jean@pryen.org>
Fri, 11 Sep 2009 17:52:37 +0000 (13:52 -0400)
Signed-off-by: Jean-Sebastien Gelinas <calestar@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>

src/nitc.nit

index 688f889..a199749 100644 (file)
@@ -129,8 +129,8 @@ special AbstractCompiler
                for mod in mods do
                        var p = new Program(mod, self)
                        p.compute_main_method
-                       p.do_table_computation
                        p.generate_allocation_iroutines
+                       p.do_table_computation
                        p.compile_prog_to_c
                end
        end