diff options
author | Ben Gamari <ben@smart-cactus.org> | 2016-01-04 11:59:02 (GMT) |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-01-04 11:59:02 (GMT) |
commit | 855c291d9afbe29e815f5e58475a398ad3e96733 (patch) | |
tree | df44263945e68d6983c1efa6d8e1845131aea5f9 | |
parent | b7ed064a2cd4c93abc8d8ad969d45df584664c73 (diff) | |
download | ghc-855c291d9afbe29e815f5e58475a398ad3e96733.zip ghc-855c291d9afbe29e815f5e58475a398ad3e96733.tar.gz ghc-855c291d9afbe29e815f5e58475a398ad3e96733.tar.bz2 |
CmmNode: Add Outputable for NewOrExistingLabel
-rw-r--r-- | compiler/cmm/CmmNode.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/cmm/CmmNode.hs b/compiler/cmm/CmmNode.hs index 41ca932..f507fd5 100644 --- a/compiler/cmm/CmmNode.hs +++ b/compiler/cmm/CmmNode.hs @@ -248,6 +248,10 @@ type UpdFrameOffset = ByteOff data NewOrExistingLabel = NewLabel !Label | ExistingLabel !Label deriving (Eq) +instance Outputable NewOrExistingLabel where + ppr (NewLabel lbl) = text "NewLabel" <+> ppr lbl + ppr (ExistingLabel lbl) = text "ExistingLabel" <+> ppr lbl + -- | A convention maps a list of values (function arguments or return -- values) to registers or stack locations. data Convention |