X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fcmm%2FZipCfg.hs;h=f07d2fa56e84b268b2d41ba973369648d9900ee0;hb=4f92da533cd1c7b5f41ef8794ee6a284f1680413;hp=85727a3bb494a973776b9222d90d90b87b37d490;hpb=c886dd30160f26f69336adc7dfc3aab5b89a4dfb;p=ghc-hetmet.git diff --git a/compiler/cmm/ZipCfg.hs b/compiler/cmm/ZipCfg.hs index 85727a3..f07d2fa 100644 --- a/compiler/cmm/ZipCfg.hs +++ b/compiler/cmm/ZipCfg.hs @@ -688,6 +688,9 @@ mkBlockSet = mkUniqSet instance (Outputable m, Outputable l) => Outputable (ZTail m l) where ppr = pprTail +instance (Outputable m, Outputable l, LastNode l) => Outputable (LGraph m l) where + ppr = pprLgraph + pprTail :: (Outputable m, Outputable l) => ZTail m l -> SDoc pprTail (ZTail m t) = ppr m $$ ppr t pprTail (ZLast LastExit) = text "" @@ -704,5 +707,3 @@ pprGraph (Graph tail blockenv) = where pprBlock (Block id tail) = ppr id <> colon $$ ppr tail blocks = postorder_dfs_from blockenv tail -_unused :: FS.FastString -_unused = undefined