projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5a7a311
)
generalize instance Outputable GenCmm to H98 (#1405)
author
Isaac Dupree
<id@isaac.cedarswampstudios.org>
Wed, 26 Dec 2007 17:59:15 +0000
(17:59 +0000)
committer
Isaac Dupree
<id@isaac.cedarswampstudios.org>
Wed, 26 Dec 2007 17:59:15 +0000
(17:59 +0000)
compiler/cmm/PprCmm.hs
patch
|
blob
|
history
diff --git
a/compiler/cmm/PprCmm.hs
b/compiler/cmm/PprCmm.hs
index
470b325
..
2aca16e
100644
(file)
--- a/
compiler/cmm/PprCmm.hs
+++ b/
compiler/cmm/PprCmm.hs
@@
-71,8
+71,8
@@
writeCmms handle cmms = printForC handle (pprCmms cmms)
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-instance (Outputable info, Outputable g)
- => Outputable (GenCmm CmmStatic info g) where
+instance (Outputable d, Outputable info, Outputable g)
+ => Outputable (GenCmm d info g) where
ppr c = pprCmm c
instance (Outputable d, Outputable info, Outputable i)
ppr c = pprCmm c
instance (Outputable d, Outputable info, Outputable i)
@@
-110,7
+110,7
@@
instance Outputable CmmInfo where
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-pprCmm :: (Outputable info, Outputable g) => GenCmm CmmStatic info g -> SDoc
+pprCmm :: (Outputable d, Outputable info, Outputable g) => GenCmm d info g -> SDoc
pprCmm (Cmm tops) = vcat $ intersperse (text "") $ map pprTop tops
-- --------------------------------------------------------------------------
pprCmm (Cmm tops) = vcat $ intersperse (text "") $ map pprTop tops
-- --------------------------------------------------------------------------