X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FX86%2FPpr.hs;fp=compiler%2FnativeGen%2FX86%2FPpr.hs;h=4881062d750eecff9cfa0e0f375c11085064367b;hb=caf23cc69ad53481e8357b3cf0e37fdea3d0e05a;hp=bdbeebd476aea17485ccdce54dda7479aafb2486;hpb=72636a93a047af23461df5123edc2342b2dec48d;p=ghc-hetmet.git diff --git a/compiler/nativeGen/X86/Ppr.hs b/compiler/nativeGen/X86/Ppr.hs index bdbeebd..4881062 100644 --- a/compiler/nativeGen/X86/Ppr.hs +++ b/compiler/nativeGen/X86/Ppr.hs @@ -43,7 +43,9 @@ import Outputable (panic, Outputable) import Data.Word - +#if i386_TARGET_ARCH && darwin_TARGET_OS +import Data.Bits +#endif -- ----------------------------------------------------------------------------- -- Printing this stuff out @@ -96,7 +98,13 @@ pprData :: CmmStatic -> Doc pprData (CmmAlign bytes) = pprAlign bytes pprData (CmmDataLabel lbl) = pprLabel lbl pprData (CmmString str) = pprASCII str + +#if darwin_TARGET_OS +pprData (CmmUninitialised bytes) = ptext (sLit ".space ") <> int bytes +#else pprData (CmmUninitialised bytes) = ptext (sLit ".skip ") <> int bytes +#endif + pprData (CmmStaticLit lit) = pprDataItem lit pprGloblDecl :: CLabel -> Doc