massive changes to add a 'zipper' representation of C--
[ghc-hetmet.git] / compiler / codeGen / CodeGen.lhs
index eaaae2c..a53ff49 100644 (file)
@@ -11,6 +11,13 @@ This module says how things get going at the top level.
 functions drive the mangling of top-level bindings.
 
 \begin{code}
+{-# 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/Commentary/CodingStyle#Warnings
+-- for details
+
 module CodeGen ( codeGen ) where
 
 #include "HsVersions.h"
@@ -63,6 +70,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