summaryrefslogtreecommitdiff
path: root/compiler/cmm/PprCmmDecl.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-06-20 16:42:12 +0100
committerIan Lynagh <igloo@earth.li>2012-06-20 16:42:12 +0100
commit5045cfbc96315e3bc645c563bcd8df8e548d66ae (patch)
treeca2a4848c504c81f38719a0f83366dd50ec6b01d /compiler/cmm/PprCmmDecl.hs
parent158c3530eb4ec3b770f293341c4817fc7ea4094d (diff)
downloadhaskell-5045cfbc96315e3bc645c563bcd8df8e548d66ae.tar.gz
Remove some redundant Platform arguments
Diffstat (limited to 'compiler/cmm/PprCmmDecl.hs')
-rw-r--r--compiler/cmm/PprCmmDecl.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/cmm/PprCmmDecl.hs b/compiler/cmm/PprCmmDecl.hs
index 41653dcd9f..0b22e5369a 100644
--- a/compiler/cmm/PprCmmDecl.hs
+++ b/compiler/cmm/PprCmmDecl.hs
@@ -81,7 +81,7 @@ instance Outputable CmmStatics where
ppr x = sdocWithPlatform $ \platform -> pprStatics platform x
instance Outputable CmmStatic where
- ppr x = sdocWithPlatform $ \platform -> pprStatic platform x
+ ppr = pprStatic
instance Outputable CmmInfoTable where
ppr = pprInfoTable
@@ -153,9 +153,9 @@ pprStatics :: Platform -> CmmStatics -> SDoc
pprStatics platform (Statics lbl ds)
= vcat ((pprCLabel platform lbl <> colon) : map ppr ds)
-pprStatic :: Platform -> CmmStatic -> SDoc
-pprStatic platform s = case s of
- CmmStaticLit lit -> nest 4 $ ptext (sLit "const") <+> pprLit platform lit <> semi
+pprStatic :: CmmStatic -> SDoc
+pprStatic s = case s of
+ CmmStaticLit lit -> nest 4 $ ptext (sLit "const") <+> pprLit lit <> semi
CmmUninitialised i -> nest 4 $ text "I8" <> brackets (int i)
CmmString s' -> nest 4 $ text "I8[]" <+> text (show s')