Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
0f4cdf02
Commit
0f4cdf02
authored
Sep 14, 2007
by
nr@eecs.harvard.edu
Browse files
replace #ifdef DEBUG with debugIsOn in cmm/MkZipCfg
parent
b9bcf6e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/cmm/MkZipCfg.hs
View file @
0f4cdf02
...
...
@@ -17,6 +17,7 @@ import UniqSupply
import
Prelude
hiding
(
zip
,
unzip
,
last
)
#
include
"HsVersions.h"
-------------------------------------------------------------------------
-- GENERIC ZIPPER-BASED CONTROL-FLOW GRAPH (CONSTRUCTOR VIEW) --
...
...
@@ -327,15 +328,11 @@ mkWhileDo cbranch body =
note_this_code_becomes_unreachable
::
(
Monad
m
,
LastNode
l
,
Outputable
middle
,
Outputable
l
)
=>
ZTail
middle
l
->
m
()
#
ifdef
DEBUG
note_this_code_becomes_unreachable
=
u
note_this_code_becomes_unreachable
=
if
debugIsOn
then
u
else
\
_
->
return
()
where
u
(
ZLast
LastExit
)
=
return
()
u
(
ZLast
(
LastOther
l
))
|
isBranchNode
l
=
return
()
-- Note [Branch follows branch]
u
tail
=
fail
(
"unreachable code: "
++
showSDoc
(
ppr
tail
))
#
else
note_this_code_becomes_unreachable
_
=
return
()
#
endif
{-
Note [Branch follows branch]
...
...
@@ -347,3 +344,6 @@ giving it a label, and start a new one that branches to that label.
Emitting a Branch at this point is fine:
goto L1; L2: ...stuff...
-}
_unused
::
FS
.
FastString
_unused
=
undefined
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment