Add {-# OPTIONS_GHC -w #-} and some blurb to all compiler modules
[ghc-hetmet.git] / compiler / simplStg / SRT.lhs
index cd118d7..fed0a64 100644 (file)
@@ -7,6 +7,13 @@ each let-binding.  At the same time, we figure out which top-level
 bindings have no CAF references, and record the fact in their IdInfo.
 
 \begin{code}
+{-# OPTIONS_GHC -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
+-- for details
+
 module SRT( computeSRTs ) where
 
 #include "HsVersions.h"
@@ -15,9 +22,7 @@ import StgSyn
 import Id              ( Id )
 import VarSet
 import VarEnv
-import Util            ( sortLe )
-import Maybes          ( orElse )
-import Maybes          ( expectJust )
+import Maybes          ( orElse, expectJust )
 import Bitmap          ( intsToBitmap )
 
 #ifdef DEBUG
@@ -27,7 +32,6 @@ import Outputable
 import List
 
 import Util
-import Outputable
 \end{code}
 
 \begin{code}
@@ -116,6 +120,8 @@ srtExpr table e@(StgOpApp op args ty)   = e
 
 srtExpr table (StgSCC cc expr) = StgSCC cc $! srtExpr table expr
 
+srtExpr table (StgTick m n expr) = StgTick m n $! srtExpr table expr
+
 srtExpr table (StgCase scrut live1 live2 uniq srt alt_type alts)
  = StgCase expr' live1 live2 uniq srt' alt_type alts'
  where