summaryrefslogtreecommitdiff
path: root/compiler/nativeGen
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-06-05 00:52:01 +0100
committerIan Lynagh <igloo@earth.li>2012-06-05 03:11:23 +0100
commit243439e6e77eca548a6583722792d6b96e3f6bcd (patch)
tree82a7852a205a53f3acfcd5d345a43cb7e284108f /compiler/nativeGen
parent50fddb2b046605315f903d9b744780497cc978de (diff)
downloadhaskell-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/nativeGen')
-rw-r--r--compiler/nativeGen/PPC/CodeGen.hs1
-rw-r--r--compiler/nativeGen/X86/CodeGen.hs1
2 files changed, 2 insertions, 0 deletions
diff --git a/compiler/nativeGen/PPC/CodeGen.hs b/compiler/nativeGen/PPC/CodeGen.hs
index 2b8bb62ad2..22406073b5 100644
--- a/compiler/nativeGen/PPC/CodeGen.hs
+++ b/compiler/nativeGen/PPC/CodeGen.hs
@@ -57,6 +57,7 @@ import Data.Word
import BasicTypes
import FastString
+import Util
-- -----------------------------------------------------------------------------
-- Top-level of the instruction selector
diff --git a/compiler/nativeGen/X86/CodeGen.hs b/compiler/nativeGen/X86/CodeGen.hs
index 98d5e892ad..4fa42820ca 100644
--- a/compiler/nativeGen/X86/CodeGen.hs
+++ b/compiler/nativeGen/X86/CodeGen.hs
@@ -54,6 +54,7 @@ import FastString
import FastBool ( isFastTrue )
import Constants ( wORD_SIZE )
import DynFlags
+import Util
import Control.Monad
import Data.Bits