diff options
author | Ian Lynagh <igloo@earth.li> | 2012-06-05 00:52:01 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2012-06-05 03:11:23 +0100 |
commit | 243439e6e77eca548a6583722792d6b96e3f6bcd (patch) | |
tree | 82a7852a205a53f3acfcd5d345a43cb7e284108f /compiler/codeGen | |
parent | 50fddb2b046605315f903d9b744780497cc978de (diff) | |
download | haskell-243439e6e77eca548a6583722792d6b96e3f6bcd.tar.gz |
Change how macros like ASSERT are defined
By using Haskell's debugIsOn rather than CPP's "#ifdef DEBUG", we
don't need to kludge things to keep the warning checker happy etc.
Diffstat (limited to 'compiler/codeGen')
-rw-r--r-- | compiler/codeGen/CgMonad.lhs | 1 | ||||
-rw-r--r-- | compiler/codeGen/CgTailCall.lhs | 1 | ||||
-rw-r--r-- | compiler/codeGen/ClosureInfo.lhs | 1 | ||||
-rw-r--r-- | compiler/codeGen/CodeGen.lhs | 1 | ||||
-rw-r--r-- | compiler/codeGen/StgCmm.hs | 1 | ||||
-rw-r--r-- | compiler/codeGen/StgCmmClosure.hs | 1 | ||||
-rw-r--r-- | compiler/codeGen/StgCmmCon.hs | 2 | ||||
-rw-r--r-- | compiler/codeGen/StgCmmHeap.hs | 1 | ||||
-rw-r--r-- | compiler/codeGen/StgCmmPrim.hs | 1 |
9 files changed, 9 insertions, 1 deletions
diff --git a/compiler/codeGen/CgMonad.lhs b/compiler/codeGen/CgMonad.lhs index c0e3e3be8b..b96898f591 100644 --- a/compiler/codeGen/CgMonad.lhs +++ b/compiler/codeGen/CgMonad.lhs @@ -77,6 +77,7 @@ import VarEnv import OrdList import Unique import UniqSupply +import Util import Outputable import Control.Monad diff --git a/compiler/codeGen/CgTailCall.lhs b/compiler/codeGen/CgTailCall.lhs index 499529d841..e933fedb5b 100644 --- a/compiler/codeGen/CgTailCall.lhs +++ b/compiler/codeGen/CgTailCall.lhs @@ -43,6 +43,7 @@ import StgSyn import PrimOp import Outputable import StaticFlags +import Util import Control.Monad import Data.Maybe diff --git a/compiler/codeGen/ClosureInfo.lhs b/compiler/codeGen/ClosureInfo.lhs index d8fd07fead..23ae4270f4 100644 --- a/compiler/codeGen/ClosureInfo.lhs +++ b/compiler/codeGen/ClosureInfo.lhs @@ -96,6 +96,7 @@ import Outputable import FastString import Constants import DynFlags +import Util \end{code} diff --git a/compiler/codeGen/CodeGen.lhs b/compiler/codeGen/CodeGen.lhs index aa561c4f40..24ac064256 100644 --- a/compiler/codeGen/CodeGen.lhs +++ b/compiler/codeGen/CodeGen.lhs @@ -45,6 +45,7 @@ import TyCon import Module import ErrUtils import Panic +import Util codeGen :: DynFlags -> Module -- Module we are compiling diff --git a/compiler/codeGen/StgCmm.hs b/compiler/codeGen/StgCmm.hs index 7aa159844b..6e99543064 100644 --- a/compiler/codeGen/StgCmm.hs +++ b/compiler/codeGen/StgCmm.hs @@ -46,6 +46,7 @@ import TyCon import Module import ErrUtils import Outputable +import Util codeGen :: DynFlags -> Module diff --git a/compiler/codeGen/StgCmmClosure.hs b/compiler/codeGen/StgCmmClosure.hs index d4ba62c6ca..708b2bd0a7 100644 --- a/compiler/codeGen/StgCmmClosure.hs +++ b/compiler/codeGen/StgCmmClosure.hs @@ -90,6 +90,7 @@ import Outputable import Platform import Constants import DynFlags +import Util ----------------------------------------------------------------------------- -- Representations diff --git a/compiler/codeGen/StgCmmCon.hs b/compiler/codeGen/StgCmmCon.hs index e17ac4fd32..ee71f5c86a 100644 --- a/compiler/codeGen/StgCmmCon.hs +++ b/compiler/codeGen/StgCmmCon.hs @@ -41,7 +41,7 @@ import PrelInfo import Outputable import Platform import StaticFlags -import Util ( lengthIs ) +import Util import Control.Monad import Data.Char diff --git a/compiler/codeGen/StgCmmHeap.hs b/compiler/codeGen/StgCmmHeap.hs index 690b0a9622..7b22c5726a 100644 --- a/compiler/codeGen/StgCmmHeap.hs +++ b/compiler/codeGen/StgCmmHeap.hs @@ -44,6 +44,7 @@ import Module import FastString( mkFastString, fsLit ) import Constants import DynFlags +import Util ----------------------------------------------------------- -- Initialise dynamic heap objects diff --git a/compiler/codeGen/StgCmmPrim.hs b/compiler/codeGen/StgCmmPrim.hs index 331d4f529e..efa234b5a6 100644 --- a/compiler/codeGen/StgCmmPrim.hs +++ b/compiler/codeGen/StgCmmPrim.hs @@ -43,6 +43,7 @@ import Module import FastString import Outputable import StaticFlags +import Util ------------------------------------------------------------------------ -- Primitive operations and foreign calls |