diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2017-03-15 09:29:24 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-03-15 15:23:34 -0400 |
commit | 086b514b199c122b638391f3aa2fbcf15cc10c06 (patch) | |
tree | 1227dbc5061c170fa76ddd938a7ba3ab3ddef1c1 /compiler/deSugar | |
parent | cc9d574a578090d17d1597628e44371003cb19a7 (diff) | |
download | haskell-086b514b199c122b638391f3aa2fbcf15cc10c06.tar.gz |
Introduce putLogMsg
This factors out the repetition of (log_action dflags dflags) and will
hopefully allow us to someday better abstract log output.
Test Plan: Validate
Reviewers: austin, hvr, goldfire
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D3334
Diffstat (limited to 'compiler/deSugar')
-rw-r--r-- | compiler/deSugar/Coverage.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/deSugar/Coverage.hs b/compiler/deSugar/Coverage.hs index d42b6b0767..f4fb42cde5 100644 --- a/compiler/deSugar/Coverage.hs +++ b/compiler/deSugar/Coverage.hs @@ -111,7 +111,7 @@ addTicksToBinds hsc_env mod mod_loc exports tyCons binds modBreaks <- mkModBreaks hsc_env mod tickCount entries when (dopt Opt_D_dump_ticked dflags) $ - log_action dflags dflags NoReason SevDump noSrcSpan + putLogMsg dflags NoReason SevDump noSrcSpan (defaultDumpStyle dflags) (pprLHsBinds binds1) return (binds1, HpcInfo tickCount hashNo, Just modBreaks) |