summaryrefslogtreecommitdiff
path: root/compiler/GHC/Core/Make.hs
diff options
context:
space:
mode:
authorSebastian Graf <sebastian.graf@kit.edu>2021-03-26 11:54:25 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-03-28 00:12:21 -0400
commitb02c8ef768df33ef4845da2f15583cf143a4d0e2 (patch)
tree93cc9890baaf66d43818572e9d897687438a84c1 /compiler/GHC/Core/Make.hs
parentf6960b188f4e66bb1c7b00d55a015fdd418614a7 (diff)
downloadhaskell-b02c8ef768df33ef4845da2f15583cf143a4d0e2.tar.gz
Rename StrictSig to DmdSig (#19597)
In #19597, we also settled on the following renamings: * `idStrictness` -> `idDmdSig`, `strictnessInfo` -> `dmdSigInfo`, `HsStrictness` -> `HsDmdSig` * `idCprInfo` -> `idCprSig`, `cprInfo` -> `cprSigInfo`, `HsCpr` -> `HsCprSig` Fixes #19597.
Diffstat (limited to 'compiler/GHC/Core/Make.hs')
-rw-r--r--compiler/GHC/Core/Make.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/GHC/Core/Make.hs b/compiler/GHC/Core/Make.hs
index 60ae13bee7..3638b43c56 100644
--- a/compiler/GHC/Core/Make.hs
+++ b/compiler/GHC/Core/Make.hs
@@ -897,8 +897,8 @@ mkExceptionId :: Name -> Id
mkExceptionId name
= mkVanillaGlobalWithInfo name
(mkSpecForAllTys [alphaTyVar] (mkTyVarTy alphaTyVar)) -- forall a . a
- (vanillaIdInfo `setStrictnessInfo` mkClosedStrictSig [] botDiv
- `setCprInfo` mkCprSig 0 botCpr
+ (vanillaIdInfo `setDmdSigInfo` mkClosedDmdSig [] botDiv
+ `setCprSigInfo` mkCprSig 0 botCpr
`setArityInfo` 0
`setCafInfo` NoCafRefs) -- #15038
@@ -912,8 +912,8 @@ mkRuntimeErrorId :: Name -> Id
mkRuntimeErrorId name
= mkVanillaGlobalWithInfo name runtimeErrorTy bottoming_info
where
- bottoming_info = vanillaIdInfo `setStrictnessInfo` strict_sig
- `setCprInfo` mkCprSig 1 botCpr
+ bottoming_info = vanillaIdInfo `setDmdSigInfo` strict_sig
+ `setCprSigInfo` mkCprSig 1 botCpr
`setArityInfo` 1
-- Make arity and strictness agree
@@ -926,7 +926,7 @@ mkRuntimeErrorId name
-- any pc_bottoming_Id will itself have CafRefs, which bloats
-- SRTs.
- strict_sig = mkClosedStrictSig [evalDmd] botDiv
+ strict_sig = mkClosedDmdSig [evalDmd] botDiv
runtimeErrorTy :: Type
-- forall (rr :: RuntimeRep) (a :: rr). Addr# -> a