summaryrefslogtreecommitdiff
path: root/compiler/profiling/ProfInit.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-10-02 01:31:05 +0100
committerIan Lynagh <igloo@earth.li>2011-10-02 16:39:08 +0100
commitac7a7eb93397a2343402f77f1a8a8b4a0e0298df (patch)
tree86fae1d7598b2ddb94b1c00906468eb54af9a48e /compiler/profiling/ProfInit.hs
parentd8d161749c8b13c3db802f348761cff662741c53 (diff)
downloadhaskell-ac7a7eb93397a2343402f77f1a8a8b4a0e0298df.tar.gz
More CPP removal: pprDynamicLinkerAsmLabel in CLabel
And some knock-on changes
Diffstat (limited to 'compiler/profiling/ProfInit.hs')
-rw-r--r--compiler/profiling/ProfInit.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler/profiling/ProfInit.hs b/compiler/profiling/ProfInit.hs
index 7e223f80e9..fa99a752d1 100644
--- a/compiler/profiling/ProfInit.hs
+++ b/compiler/profiling/ProfInit.hs
@@ -11,6 +11,7 @@ module ProfInit (profilingInitCode) where
import CLabel
import CostCentre
import Outputable
+import Platform
import StaticFlags
import FastString
import Module
@@ -21,8 +22,8 @@ import Module
-- We must produce declarations for the cost-centres defined in this
-- module;
-profilingInitCode :: Module -> CollectedCCs -> SDoc
-profilingInitCode this_mod (local_CCs, ___extern_CCs, singleton_CCSs)
+profilingInitCode :: Platform -> Module -> CollectedCCs -> SDoc
+profilingInitCode platform this_mod (local_CCs, ___extern_CCs, singleton_CCSs)
| not opt_SccProfilingOn = empty
| otherwise
= vcat
@@ -38,8 +39,8 @@ profilingInitCode this_mod (local_CCs, ___extern_CCs, singleton_CCSs)
emitRegisterCC cc =
ptext (sLit "extern CostCentre ") <> cc_lbl <> ptext (sLit "[];") $$
ptext (sLit "REGISTER_CC(") <> cc_lbl <> char ')' <> semi
- where cc_lbl = ppr (mkCCLabel cc)
+ where cc_lbl = pprPlatform platform (mkCCLabel cc)
emitRegisterCCS ccs =
ptext (sLit "extern CostCentreStack ") <> ccs_lbl <> ptext (sLit "[];") $$
ptext (sLit "REGISTER_CCS(") <> ccs_lbl <> char ')' <> semi
- where ccs_lbl = ppr (mkCCSLabel ccs)
+ where ccs_lbl = pprPlatform platform (mkCCSLabel ccs)