X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FsimplCore%2FCoreMonad.lhs;h=9eef502e1a3c54b3e42f07d7c4ecd49b263fd858;hb=facfbf28a9bd4edeebc23e6d74a77a7ea83e5c61;hp=f80608956273be8db329c19dc5acadd1a25eaa82;hpb=72462499b891d5779c19f3bda03f96e24f9554ae;p=ghc-hetmet.git diff --git a/compiler/simplCore/CoreMonad.lhs b/compiler/simplCore/CoreMonad.lhs index f806089..9eef502 100644 --- a/compiler/simplCore/CoreMonad.lhs +++ b/compiler/simplCore/CoreMonad.lhs @@ -25,7 +25,7 @@ module CoreMonad ( findAnnotations, deserializeAnnotations, addAnnotation, -- ** Debug output - endPass, endPassIf, + endPass, endPassIf, endIteration, -- ** Screen output putMsg, putMsgS, errorMsg, errorMsgS, @@ -97,6 +97,10 @@ endPass = dumpAndLint Err.dumpIfSet_core endPassIf :: Bool -> DynFlags -> String -> DynFlag -> [CoreBind] -> [CoreRule] -> IO () endPassIf cond = dumpAndLint (Err.dumpIf_core cond) +-- Same as endPass but doesn't dump Core even with -dverbose-core2core +endIteration :: DynFlags -> String -> DynFlag -> [CoreBind] -> [CoreRule] -> IO () +endIteration = dumpAndLint Err.dumpIfSet_dyn + dumpAndLint :: (DynFlags -> DynFlag -> String -> SDoc -> IO ()) -> DynFlags -> String -> DynFlag -> [CoreBind] -> [CoreRule] -> IO ()