Skip to content
This repository was archived by the owner on Nov 1, 2018. It is now read-only.

Commit

Permalink
cleanup of debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
atzedijkstra committed Jan 25, 2016
1 parent 3700860 commit b84bf35
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion EHC/src/ehc/EHC/CompilePhase/Module.chs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ cpGetCoreModnameAndImports modNm
mbCrSemMod = _ecuMbCoreSemMod ecu
crSemMod = panicJust "cpGetCoreModnameAndImports" mbCrSemMod
modNm' = Core2ChkSem.realModuleNm_Syn_CodeAGItf crSemMod
; cpMsg modNm VerboseDebug $ "cpGetCoreModnameAndImports: " ++ show modNm ++ " -> " ++ show modNm'
; cpMsg modNm VerboseALot $ "cpGetCoreModnameAndImports: " ++ show modNm ++ " -> " ++ show modNm'
; case mbCrSemMod of
Just _ -> cpUpdCUWithKey modNm $ \_ ecu ->
( modNm'
Expand Down
4 changes: 2 additions & 2 deletions EHC/src/ehc/EHC/CompilePhase/TopLevelPhases.chs
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ cpEhcCorePerModulePart2 modNm
%%][50
earlyMerge = ehcOptOptimizationScope opts >= OptimizationScope_WholeCore
%%]]
; cpMsg modNm VerboseDebug $ "cpEhcCorePerModulePart2"
; cpMsg modNm VerboseALot $ "cpEhcCorePerModulePart2"
; cpSeq [ when earlyMerge $ cpProcessCoreRest modNm
%%[[(8 grin)
, when (ehcOptIsViaGrin opts) (cpProcessGrin modNm)
Expand All @@ -1148,7 +1148,7 @@ cpEhcCoreGrinPerModuleDoneNoFullProgAnalysis :: EHCCompileRunner m => EHCOpts ->
cpEhcCoreGrinPerModuleDoneNoFullProgAnalysis opts isMainMod isTopMod doMkExec modNm
= cpSeq ( [ cpEhcCorePerModulePart2 modNm
%%[[50
, cpMsg modNm VerboseDebug "cpFlowOptim"
, cpMsg modNm VerboseALot "cpFlowOptim"
, cpFlowOptim modNm
%%]]
%%[[(99 grin)
Expand Down
2 changes: 1 addition & 1 deletion EHC/src/ehc/EHC/CompilePhase/TransformGrin.chs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ cpFromGrinTrf modNm trf m
cpTransformGrin :: forall m . EHCCompileRunner m => HsName -> EHCompilePhaseT m ()
cpTransformGrin modNm
= do { cr <- get
; cpMsg modNm VerboseDebug "cpTransformGrin"
; cpMsg modNm VerboseALot "cpTransformGrin"
; let (ecu,_,opts,_) = crBaseInfo modNm cr
forBytecode = targetIsGrinBytecode (ehcOptTarget opts)
forBytecodeOrSimilar = not doesHPT -- targetIsGrinBytecode (ehcOptTarget opts)
Expand Down
5 changes: 2 additions & 3 deletions EHC/src/ehc/EHC/CompilePhase/Translations.chs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ cpTranslateCore2Grin modNm
mbCoreSem = _ecuMbCoreSem ecu
coreSem = panicJust "cpTranslateCore2Grin" mbCoreSem
grin = Core2GrSem.grMod_Syn_CodeAGItf coreSem
; cpMsg modNm VerboseDebug $ "cpTranslateCore2Grin, has coresem " ++ show (isJust mbCoreSem) ++ ", via grin " ++ show (ehcOptIsViaGrin opts)
; cpMsg modNm VerboseALot $ "cpTranslateCore2Grin, has coresem " ++ show (isJust mbCoreSem) ++ ", via grin " ++ show (ehcOptIsViaGrin opts)
; when (isJust mbCoreSem && ehcOptIsViaGrin opts)
(cpUpdCU modNm $! ecuStoreGrin $! grin)
}
Expand Down Expand Up @@ -326,10 +326,9 @@ cpTranslateGrin2Bytecode modNm
(liftIO $ putStrLn ("expNmFldMp: " ++ show expNmFldMp))
%%]]

; cpMsg modNm VerboseDebug $ "cpTranslateGrin2Bytecode: store bytecode, has grin " ++ show (isJust mbGrin)
; cpMsg modNm VerboseALot $ "cpTranslateGrin2Bytecode: store bytecode, has grin " ++ show (isJust mbGrin)
; when (isJust mbGrin)
(cpUpdCU modNm $! ecuStoreBytecode bc)
; cpMsg modNm VerboseDebug ("cpTranslateGrin2Bytecode: stored bytecode")
; when (ehcOptErrAboutBytecode opts)
(cpSetLimitErrsWhen 5 "Grin to ByteCode" errs)
}
Expand Down

0 comments on commit b84bf35

Please sign in to comment.