summaryrefslogtreecommitdiff
path: root/compiler/simplStg
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2017-03-15 09:29:24 -0400
committerBen Gamari <ben@smart-cactus.org>2017-03-15 15:23:34 -0400
commit086b514b199c122b638391f3aa2fbcf15cc10c06 (patch)
tree1227dbc5061c170fa76ddd938a7ba3ab3ddef1c1 /compiler/simplStg
parentcc9d574a578090d17d1597628e44371003cb19a7 (diff)
downloadhaskell-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.hs2
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