X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fcmm%2FPprCmm.hs;h=6e8367d66280b3c3dce48521f0d64974dc66cccf;hb=9d7da331989abcd1844e9d03b8d1e4163796fa85;hp=3c3e9764a496f6b0e79c878ee2345441ddc439fa;hpb=faa8d785c64ce394d9f83fb50e547037cd21c594;p=ghc-hetmet.git diff --git a/ghc/compiler/cmm/PprCmm.hs b/ghc/compiler/cmm/PprCmm.hs index 3c3e976..6e8367d 100644 --- a/ghc/compiler/cmm/PprCmm.hs +++ b/ghc/compiler/cmm/PprCmm.hs @@ -51,6 +51,7 @@ import FastString ( mkFastString ) import Data.List ( intersperse, groupBy ) import IO ( Handle ) import Maybe ( isJust ) +import Data.Char ( chr ) pprCmms :: [Cmm] -> SDoc pprCmms cmms = pprCode CStyle (vcat (intersperse separator $ map ppr cmms)) @@ -391,7 +392,8 @@ pprStatic s = case s of CmmUninitialised i -> nest 4 $ text "I8" <> brackets (int i) CmmAlign i -> nest 4 $ text "align" <+> int i CmmDataLabel clbl -> pprCLabel clbl <> colon - CmmString s' -> nest 4 $ text "I8[]" <+> doubleQuotes (text s') + CmmString s' -> nest 4 $ text "I8[]" <+> + doubleQuotes (text (map (chr.fromIntegral) s')) -- -------------------------------------------------------------------------- -- Registers, whether local (temps) or global