Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
ae1d2994
Commit
ae1d2994
authored
Dec 29, 2008
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings in CmmLive
parent
da300d71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
compiler/cmm/CmmLive.hs
compiler/cmm/CmmLive.hs
+1
-8
No files found.
compiler/cmm/CmmLive.hs
View file @
ae1d2994
{-# OPTIONS -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings
-- for details
module
CmmLive
(
CmmLive
,
BlockEntryLiveness
,
...
...
@@ -20,7 +13,6 @@ import Dataflow
import
Maybes
import
Panic
import
UniqFM
import
UniqSet
-----------------------------------------------------------------------------
...
...
@@ -213,6 +205,7 @@ cmmExprLive expr = addLive (mkUniqSet $ expr_liveness expr) where
expr_liveness
(
CmmReg
reg
)
=
reg_liveness
reg
expr_liveness
(
CmmMachOp
_
exprs
)
=
concatMap
expr_liveness
exprs
expr_liveness
(
CmmRegOff
reg
_
)
=
reg_liveness
reg
expr_liveness
(
CmmStackSlot
_
_
)
=
panic
"cmmExprLive CmmStackSlot"
reg_liveness
::
CmmReg
->
[
LocalReg
]
reg_liveness
(
CmmLocal
reg
)
=
[
reg
]
...
...
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