C backend: put the entry block first
authorSimon Marlow <marlowsd@gmail.com>
Mon, 19 Nov 2012 13:06:41 +0000 (13:06 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 19 Nov 2012 13:06:41 +0000 (13:06 +0000)
compiler/cmm/PprC.hs

index ed99855..f323097 100644 (file)
@@ -102,7 +102,7 @@ pprTop (CmmProc infos clbl _ graph) =
            rbrace ]
     )
   where
-        blocks = toBlockList graph
+        blocks = toBlockListEntryFirst graph
         (temp_decls, extern_decls) = pprTempAndExternDecls blocks