summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-03-29 14:45:44 +0000
committerIan Lynagh <igloo@earth.li>2008-03-29 14:45:44 +0000
commitdf62fe193785e1fc9786a6c7321670f99fa9a37d (patch)
tree9717ebf167d1fc544137061d07b931a283bfd240 /compiler
parent6a1fc2329366f912b6378a68b3f9876f0954de01 (diff)
downloadhaskell-df62fe193785e1fc9786a6c7321670f99fa9a37d.tar.gz
Remove an #ifdef DEBUG
Diffstat (limited to 'compiler')
-rw-r--r--compiler/specialise/Rules.lhs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/specialise/Rules.lhs b/compiler/specialise/Rules.lhs
index 090f0f0b80..65975f81cb 100644
--- a/compiler/specialise/Rules.lhs
+++ b/compiler/specialise/Rules.lhs
@@ -268,8 +268,7 @@ findBest target (rule,ans) [] = (rule,ans)
findBest target (rule1,ans1) ((rule2,ans2):prs)
| rule1 `isMoreSpecific` rule2 = findBest target (rule1,ans1) prs
| rule2 `isMoreSpecific` rule1 = findBest target (rule2,ans2) prs
-#ifdef DEBUG
- | otherwise = let pp_rule rule
+ | debugIsOn = let pp_rule rule
| opt_PprStyle_Debug = ppr rule
| otherwise = doubleQuotes (ftext (ru_name rule))
in pprTrace "Rules.findBest: rule overlap (Rule 1 wins)"
@@ -279,9 +278,7 @@ findBest target (rule1,ans1) ((rule2,ans2):prs)
ptext SLIT("Rule 1:") <+> pp_rule rule1,
ptext SLIT("Rule 2:") <+> pp_rule rule2]) $
findBest target (rule1,ans1) prs
-#else
| otherwise = findBest target (rule1,ans1) prs
-#endif
where
(fn,args) = target