diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-06-29 18:20:51 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-07-16 13:25:41 -0400 |
commit | f1c449910256c61cb35e361a367d5209bc51cc7a (patch) | |
tree | 1e2f0951f4e3b24d6c7075834526aca24711c7cd /compiler/GHC/CmmToC.hs | |
parent | 28347d7141761fc5c3c9bd66e5c4b2ea1c16f58a (diff) | |
download | haskell-f1c449910256c61cb35e361a367d5209bc51cc7a.tar.gz |
cmm: Eliminate orphan Outputable instances
Here we reorganize `GHC.Cmm` to eliminate the orphan `Outputable` and
`OutputableP` instances for the Cmm AST. This makes it significantly
easier to use the Cmm pretty-printers in tracing output without
incurring module import cycles.
Diffstat (limited to 'compiler/GHC/CmmToC.hs')
-rw-r--r-- | compiler/GHC/CmmToC.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/GHC/CmmToC.hs b/compiler/GHC/CmmToC.hs index c9f86e9afe..1659575459 100644 --- a/compiler/GHC/CmmToC.hs +++ b/compiler/GHC/CmmToC.hs @@ -33,8 +33,7 @@ import GHC.CmmToAsm.CPrim import GHC.Cmm.BlockId import GHC.Cmm.CLabel -import GHC.Cmm hiding (pprBBlock) -import GHC.Cmm.Ppr () -- For Outputable instances +import GHC.Cmm hiding (pprBBlock, pprStatic) import GHC.Cmm.Dataflow.Block import GHC.Cmm.Dataflow.Collections import GHC.Cmm.Dataflow.Graph |