projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move and generalize an instance (#1405)
[ghc-hetmet.git]
/
compiler
/
cmm
/
ZipCfgCmmRep.hs
diff --git
a/compiler/cmm/ZipCfgCmmRep.hs
b/compiler/cmm/ZipCfgCmmRep.hs
index
c5464e2
..
f0dc535
100644
(file)
--- a/
compiler/cmm/ZipCfgCmmRep.hs
+++ b/
compiler/cmm/ZipCfgCmmRep.hs
@@
-182,10
+182,6
@@
instance UserOfLocalRegs Last where
last (LastCondBranch e _ _) = foldRegsUsed f z e
last (LastSwitch e _tbl) = foldRegsUsed f z e
last (LastCondBranch e _ _) = foldRegsUsed f z e
last (LastSwitch e _tbl) = foldRegsUsed f z e
-instance UserOfLocalRegs (ZLast Last) where
- foldRegsUsed f z (LastOther l) = foldRegsUsed f z l
- foldRegsUsed _f z LastExit = z
-
----------------------------------------------------------------------
----- Instance declarations for prettyprinting (avoids recursive imports)
----------------------------------------------------------------------
----- Instance declarations for prettyprinting (avoids recursive imports)