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/simplStg | |
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/simplStg')
-rw-r--r-- | compiler/simplStg/SimplStg.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/simplStg/SimplStg.hs b/compiler/simplStg/SimplStg.hs index ed04327a56..4943f525af 100644 --- a/compiler/simplStg/SimplStg.hs +++ b/compiler/simplStg/SimplStg.hs @@ -38,7 +38,7 @@ stg2stg dflags module_name binds ; us <- mkSplitUniqSupply 'g' ; when (dopt Opt_D_verbose_stg2stg dflags) - (log_action dflags dflags NoReason SevDump noSrcSpan + (putLogMsg dflags NoReason SevDump noSrcSpan (defaultDumpStyle dflags) (text "VERBOSE STG-TO-STG:")) ; (binds', us', ccs) <- end_pass us "Stg2Stg" ([],[],[]) binds |