From: Matthijs Kooijman Date: Wed, 31 Mar 2010 11:57:07 +0000 (+0200) Subject: Show the current transformation context in the debug output. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=37b4305b650668f4427d44260785d0a21351b555;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git Show the current transformation context in the debug output. --- diff --git "a/c\316\273ash/CLasH/Normalize/NormalizeTools.hs" "b/c\316\273ash/CLasH/Normalize/NormalizeTools.hs" index 0402d93..e01b7b7 100644 --- "a/c\316\273ash/CLasH/Normalize/NormalizeTools.hs" +++ "b/c\316\273ash/CLasH/Normalize/NormalizeTools.hs" @@ -47,6 +47,7 @@ applyboth first (name, second) context expr = do changed then -- trace ("Applying transform " ++ name ++ " to:\n" ++ showSDoc (nest 4 $ ppr expr') ++ "\nType: \n" ++ (showSDoc $ nest 4 $ ppr $ CoreUtils.exprType expr') ++ "\n" + -- ++ "Context: " ++ show context ++ "\n" -- ++ "Result of applying " ++ name ++ ":\n" ++ showSDoc (nest 4 $ ppr expr'') ++ "\n" ++ "Type: \n" ++ (showSDoc $ nest 4 $ ppr $ CoreUtils.exprType expr'') ++ "\n" ) $ applyboth first (name, second) context expr'' else