[commit: ghc] wip/libdw-unwind: PprCmm: Print label in CmmUnwind output (6761a91)

git at git.haskell.org git at git.haskell.org
Mon Jan 4 22:20:39 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/libdw-unwind
Link       : http://ghc.haskell.org/trac/ghc/changeset/6761a91083ca55f798b18c57f0fb0206d9934bcd/ghc

>---------------------------------------------------------------

commit 6761a91083ca55f798b18c57f0fb0206d9934bcd
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon Jan 4 13:01:31 2016 +0100

    PprCmm: Print label in CmmUnwind output


>---------------------------------------------------------------

6761a91083ca55f798b18c57f0fb0206d9934bcd
 compiler/cmm/PprCmm.hs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/compiler/cmm/PprCmm.hs b/compiler/cmm/PprCmm.hs
index 89cbc99..7b15e91 100644
--- a/compiler/cmm/PprCmm.hs
+++ b/compiler/cmm/PprCmm.hs
@@ -197,7 +197,8 @@ pprNode node = pp_node <+> pp_debug
                    else empty
 
       -- unwind reg = expr;
-      CmmUnwind _ r e -> ptext (sLit "unwind ") <> ppr r <+> char '=' <+> ppr e
+      CmmUnwind lbl r e -> ptext (sLit "unwind ") <> ppr r <+> char '=' <+> ppr e
+                            <+> text "//" <+> ppr lbl
 
       -- reg = expr;
       CmmAssign reg expr -> ppr reg <+> equals <+> ppr expr <> semi



More information about the ghc-commits mailing list