summaryrefslogtreecommitdiff
path: root/compiler/GHC/Core/Opt/OccurAnal.hs
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2021-05-06 22:22:02 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-05-12 21:41:44 -0400
commit0ef119071347f7bc14f0fa89904b0cfd0b230ac1 (patch)
tree7a80b3942ae6bd18391f9b924ad55bb001392288 /compiler/GHC/Core/Opt/OccurAnal.hs
parentbfabf94f63b6644bd32982fd13ea0c8bca9aeae4 (diff)
downloadhaskell-0ef119071347f7bc14f0fa89904b0cfd0b230ac1.tar.gz
Fully remove HsVersions.h
Replace uses of WARN macro with calls to: warnPprTrace :: Bool -> SDoc -> a -> a Remove the now unused HsVersions.h Bump haddock submodule
Diffstat (limited to 'compiler/GHC/Core/Opt/OccurAnal.hs')
-rw-r--r--compiler/GHC/Core/Opt/OccurAnal.hs12
1 files changed, 5 insertions, 7 deletions
diff --git a/compiler/GHC/Core/Opt/OccurAnal.hs b/compiler/GHC/Core/Opt/OccurAnal.hs
index c7b13f17c0..034f44176f 100644
--- a/compiler/GHC/Core/Opt/OccurAnal.hs
+++ b/compiler/GHC/Core/Opt/OccurAnal.hs
@@ -19,8 +19,6 @@ core expression with (hopefully) improved usage information.
module GHC.Core.Opt.OccurAnal ( occurAnalysePgm, occurAnalyseExpr ) where
-#include "HsVersions.h"
-
import GHC.Prelude
import GHC.Driver.Ppr
@@ -82,8 +80,8 @@ occurAnalysePgm this_mod active_unf active_rule imp_rules binds
= occ_anald_binds
| otherwise -- See Note [Glomming]
- = WARN( True, hang (text "Glomming in" <+> ppr this_mod <> colon)
- 2 (ppr final_usage ) )
+ = warnPprTrace True (hang (text "Glomming in" <+> ppr this_mod <> colon)
+ 2 (ppr final_usage))
occ_anald_glommed_binds
where
init_env = initOccEnv { occ_rule_act = active_rule
@@ -3106,9 +3104,9 @@ decideJoinPointHood TopLevel _ _
= False
decideJoinPointHood NotTopLevel usage bndrs
| isJoinId (head bndrs)
- = WARN(not all_ok, text "OccurAnal failed to rediscover join point(s):" <+>
- ppr bndrs)
- all_ok
+ = warnPprTrace (not all_ok)
+ (text "OccurAnal failed to rediscover join point(s):" <+> ppr bndrs)
+ all_ok
| otherwise
= all_ok
where