X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FcodeGen%2FCodeGen.lhs;h=4221342d4f9ba3a03f6e6149a2f1a40860c491a3;hb=9367b24fde0c3f5efa5934e69571f5834ed43548;hp=3aa75c070f2fa2d26470938acf60117416bdd65c;hpb=17b297d97d327620ed6bfab942f8992b2446f1bf;p=ghc-hetmet.git diff --git a/compiler/codeGen/CodeGen.lhs b/compiler/codeGen/CodeGen.lhs index 3aa75c0..4221342 100644 --- a/compiler/codeGen/CodeGen.lhs +++ b/compiler/codeGen/CodeGen.lhs @@ -11,11 +11,11 @@ This module says how things get going at the top level. functions drive the mangling of top-level bindings. \begin{code} -{-# OPTIONS_GHC -w #-} +{-# OPTIONS -w #-} -- The above warning supression flag is a temporary kludge. -- While working on this module you are encouraged to remove it and fix -- any warnings in the module. See --- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings +-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings -- for details module CodeGen ( codeGen ) where @@ -54,10 +54,7 @@ import OccName import TyCon import Module import ErrUtils - -#ifdef DEBUG import Panic -#endif \end{code} \begin{code} @@ -70,6 +67,10 @@ codeGen :: DynFlags -> HpcInfo -> IO [Cmm] -- Output + -- N.B. returning '[Cmm]' and not 'Cmm' here makes it + -- possible for object splitting to split up the + -- pieces later. + codeGen dflags this_mod data_tycons imported_mods cost_centre_info stg_binds hpc_info = do