Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
f1d525d1
Commit
f1d525d1
authored
Mar 29, 2008
by
Ian Lynagh
Browse files
Remove an #ifdef DEBUG
parent
11c7f334
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/nativeGen/RegAllocLinear.hs
View file @
f1d525d1
...
...
@@ -1108,12 +1108,9 @@ pprStats code statss
-- -----------------------------------------------------------------------------
-- Utils
#
ifdef
DEBUG
my_fromJust
s
p
Nothing
=
pprPanic
(
"fromJust: "
++
s
)
p
my_fromJust
::
String
->
SDoc
->
Maybe
a
->
a
my_fromJust
_
_
(
Just
x
)
=
x
#
else
my_fromJust
_
_
=
fromJust
#
endif
my_fromJust
s
p
Nothing
=
pprPanic
(
"fromJust: "
++
s
)
p
lookItUp
::
Uniquable
b
=>
String
->
UniqFM
a
->
b
->
a
lookItUp
str
fm
x
=
my_fromJust
str
(
ppr
(
getUnique
x
))
(
lookupUFM
fm
x
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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