summaryrefslogtreecommitdiff
path: root/compiler/GHC/Cmm/Type.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Cmm/Type.hs')
-rw-r--r--compiler/GHC/Cmm/Type.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/GHC/Cmm/Type.hs b/compiler/GHC/Cmm/Type.hs
index bddc933bf1..0f2971dba2 100644
--- a/compiler/GHC/Cmm/Type.hs
+++ b/compiler/GHC/Cmm/Type.hs
@@ -326,22 +326,22 @@ data ForeignHint
rEP_CostCentreStack_mem_alloc :: DynFlags -> CmmType
rEP_CostCentreStack_mem_alloc dflags
= cmmBits (widthFromBytes (pc_REP_CostCentreStack_mem_alloc pc))
- where pc = platformConstants dflags
+ where pc = platformConstants (targetPlatform dflags)
rEP_CostCentreStack_scc_count :: DynFlags -> CmmType
rEP_CostCentreStack_scc_count dflags
= cmmBits (widthFromBytes (pc_REP_CostCentreStack_scc_count pc))
- where pc = platformConstants dflags
+ where pc = platformConstants (targetPlatform dflags)
rEP_StgEntCounter_allocs :: DynFlags -> CmmType
rEP_StgEntCounter_allocs dflags
= cmmBits (widthFromBytes (pc_REP_StgEntCounter_allocs pc))
- where pc = platformConstants dflags
+ where pc = platformConstants (targetPlatform dflags)
rEP_StgEntCounter_allocd :: DynFlags -> CmmType
rEP_StgEntCounter_allocd dflags
= cmmBits (widthFromBytes (pc_REP_StgEntCounter_allocd pc))
- where pc = platformConstants dflags
+ where pc = platformConstants (targetPlatform dflags)
-------------------------------------------------------------------------
{- Note [Signed vs unsigned]