summaryrefslogtreecommitdiff
path: root/compiler/cmm
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-03-29 18:50:43 +0000
committerIan Lynagh <igloo@earth.li>2008-03-29 18:50:43 +0000
commit30c122df62ec75f9ed7f392f24c2925675bf1d06 (patch)
tree16d473b935d3ef5b48dbae047b9fa3093c2a3f3f /compiler/cmm
parent7c7104a51d477c18f8950112c4bc22c4800367f3 (diff)
downloadhaskell-30c122df62ec75f9ed7f392f24c2925675bf1d06.tar.gz
Don't import FastString in HsVersions.h
Modules that need it import it themselves instead.
Diffstat (limited to 'compiler/cmm')
-rw-r--r--compiler/cmm/CmmCPSGen.hs1
-rw-r--r--compiler/cmm/CmmInfo.hs3
-rw-r--r--compiler/cmm/CmmLint.hs1
-rw-r--r--compiler/cmm/CmmOpt.hs2
-rw-r--r--compiler/cmm/MachOp.hs1
-rw-r--r--compiler/cmm/MkZipCfg.hs2
-rw-r--r--compiler/cmm/OptimizationFuel.hs5
-rw-r--r--compiler/cmm/ZipCfg.hs2
-rw-r--r--compiler/cmm/ZipDataflow0.hs4
9 files changed, 3 insertions, 18 deletions
diff --git a/compiler/cmm/CmmCPSGen.hs b/compiler/cmm/CmmCPSGen.hs
index 55a7397a68..0d409aba70 100644
--- a/compiler/cmm/CmmCPSGen.hs
+++ b/compiler/cmm/CmmCPSGen.hs
@@ -33,6 +33,7 @@ import StaticFlags
import Unique
import Maybe
import List
+import FastString
import Panic
diff --git a/compiler/cmm/CmmInfo.hs b/compiler/cmm/CmmInfo.hs
index 49a77e29fd..c0e217c1cc 100644
--- a/compiler/cmm/CmmInfo.hs
+++ b/compiler/cmm/CmmInfo.hs
@@ -276,6 +276,3 @@ mkStdInfoTable type_descr closure_descr cl_type srt_len layout_lit
type_lit = packHalfWordsCLit cl_type srt_len
-
-_unused :: FS.FastString -- stops a warning
-_unused = undefined
diff --git a/compiler/cmm/CmmLint.hs b/compiler/cmm/CmmLint.hs
index e376e56d47..c4aee8adb6 100644
--- a/compiler/cmm/CmmLint.hs
+++ b/compiler/cmm/CmmLint.hs
@@ -27,6 +27,7 @@ import Outputable
import PprCmm
import Unique
import Constants
+import FastString
import Control.Monad
diff --git a/compiler/cmm/CmmOpt.hs b/compiler/cmm/CmmOpt.hs
index 4d0390d817..6adafb5feb 100644
--- a/compiler/cmm/CmmOpt.hs
+++ b/compiler/cmm/CmmOpt.hs
@@ -574,5 +574,3 @@ isComparisonExpr _other = False
isPicReg (CmmReg (CmmGlobal PicBaseReg)) = True
isPicReg _ = False
-_unused :: FS.FastString -- stops a warning
-_unused = undefined
diff --git a/compiler/cmm/MachOp.hs b/compiler/cmm/MachOp.hs
index 10cc0cd04b..8f55000972 100644
--- a/compiler/cmm/MachOp.hs
+++ b/compiler/cmm/MachOp.hs
@@ -90,6 +90,7 @@ module MachOp (
import Constants
import Outputable
+import FastString
-- -----------------------------------------------------------------------------
-- MachRep
diff --git a/compiler/cmm/MkZipCfg.hs b/compiler/cmm/MkZipCfg.hs
index 484068ab73..067e74956c 100644
--- a/compiler/cmm/MkZipCfg.hs
+++ b/compiler/cmm/MkZipCfg.hs
@@ -360,5 +360,3 @@ Emitting a Branch at this point is fine:
freshBlockId :: String -> UniqSM BlockId
freshBlockId _ = do { u <- getUniqueUs; return $ BlockId u }
-_unused :: FS.FastString
-_unused = undefined
diff --git a/compiler/cmm/OptimizationFuel.hs b/compiler/cmm/OptimizationFuel.hs
index 6e05cdc68b..bc32626c98 100644
--- a/compiler/cmm/OptimizationFuel.hs
+++ b/compiler/cmm/OptimizationFuel.hs
@@ -48,11 +48,6 @@ oneLessFuel f = f
diffFuel _ _ = 0
#endif
--- stop warnings about things that aren't used
-_unused :: {-State#-} () -> FS.FastString
-_unused = undefined panic
-
-
data FuelState = FuelState { fs_fuellimit :: OptimizationFuel, fs_lastpass :: String }
newtype FuelMonad a = FuelMonad (FuelState -> (a, FuelState))
diff --git a/compiler/cmm/ZipCfg.hs b/compiler/cmm/ZipCfg.hs
index 1b9b5c309d..f07d2fa56e 100644
--- a/compiler/cmm/ZipCfg.hs
+++ b/compiler/cmm/ZipCfg.hs
@@ -707,5 +707,3 @@ pprGraph (Graph tail blockenv) =
where pprBlock (Block id tail) = ppr id <> colon $$ ppr tail
blocks = postorder_dfs_from blockenv tail
-_unused :: FS.FastString
-_unused = undefined
diff --git a/compiler/cmm/ZipDataflow0.hs b/compiler/cmm/ZipDataflow0.hs
index 7503d45104..00f15dbe35 100644
--- a/compiler/cmm/ZipDataflow0.hs
+++ b/compiler/cmm/ZipDataflow0.hs
@@ -1088,10 +1088,6 @@ subAnalysis' m =
where pprFacts env = nest 2 $ vcat $ map pprFact $ ufmToList env
pprFact (id, a) = hang (ppr id <> colon) 4 (ppr a)
-
-_unused :: FS.FastString
-_unused = undefined
-
null_b_ft = BComp "do nothing" Nothing no2 no2 no2
where no2 _ _ = Nothing