summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-09-20 00:30:33 +0100
committerIan Lynagh <ian@well-typed.com>2012-09-20 00:30:33 +0100
commitaa6bc700cc07e21a8b6aa5816a8c63201b9b260e (patch)
tree1f2d7fd63378693418cfda7a70cb5ac721548dce /compiler
parent54affcef5e0f269bdcca3c160e7d6bff065adb8c (diff)
downloadhaskell-aa6bc700cc07e21a8b6aa5816a8c63201b9b260e.tar.gz
Remove a couple of unneccesary Platform arguments
Diffstat (limited to 'compiler')
-rw-r--r--compiler/cmm/OldCmmLint.hs4
-rw-r--r--compiler/cmm/PprCmmDecl.hs9
2 files changed, 4 insertions, 9 deletions
diff --git a/compiler/cmm/OldCmmLint.hs b/compiler/cmm/OldCmmLint.hs
index 5dd3209892..f158369b13 100644
--- a/compiler/cmm/OldCmmLint.hs
+++ b/compiler/cmm/OldCmmLint.hs
@@ -19,7 +19,6 @@ module OldCmmLint (
import BlockId
import OldCmm
-import CLabel
import Outputable
import OldPprCmm()
import FastString
@@ -50,10 +49,9 @@ runCmmLint _ l p =
lintCmmDecl :: DynFlags -> (GenCmmDecl h i (ListGraph CmmStmt)) -> CmmLint ()
lintCmmDecl dflags (CmmProc _ lbl (ListGraph blocks))
- = addLintInfo (text "in proc " <> pprCLabel platform lbl) $
+ = addLintInfo (text "in proc " <> ppr lbl) $
let labels = foldl (\s b -> setInsert (blockId b) s) setEmpty blocks
in mapM_ (lintCmmBlock dflags labels) blocks
- where platform = targetPlatform dflags
lintCmmDecl _ (CmmData {})
= return ()
diff --git a/compiler/cmm/PprCmmDecl.hs b/compiler/cmm/PprCmmDecl.hs
index d2491d3089..2cb90e9a22 100644
--- a/compiler/cmm/PprCmmDecl.hs
+++ b/compiler/cmm/PprCmmDecl.hs
@@ -38,13 +38,11 @@ module PprCmmDecl
)
where
-import CLabel
import PprCmmExpr
import Cmm
import DynFlags
import Outputable
-import Platform
import FastString
import Data.List
@@ -72,7 +70,7 @@ instance (Outputable d, Outputable info, Outputable i)
ppr t = pprTop t
instance Outputable CmmStatics where
- ppr x = sdocWithPlatform $ \platform -> pprStatics platform x
+ ppr = pprStatics
instance Outputable CmmStatic where
ppr = pprStatic
@@ -141,9 +139,8 @@ instance Outputable ForeignHint where
-- Strings are printed as C strings, and we print them as I8[],
-- following C--
--
-pprStatics :: Platform -> CmmStatics -> SDoc
-pprStatics platform (Statics lbl ds)
- = vcat ((pprCLabel platform lbl <> colon) : map ppr ds)
+pprStatics :: CmmStatics -> SDoc
+pprStatics (Statics lbl ds) = vcat ((ppr lbl <> colon) : map ppr ds)
pprStatic :: CmmStatic -> SDoc
pprStatic s = case s of