[project @ 2002-11-05 22:31:53 by wolfgang]
[ghc-hetmet.git] / ghc / compiler / nativeGen / AbsCStixGen.lhs
index 333f986..426ae3c 100644 (file)
@@ -33,7 +33,7 @@ import Maybes         ( maybeToBool )
 import StgSyn          ( StgOp(..) )
 import MachOp          ( MachOp(..), resultRepOfMachOp )
 import PrimRep         ( isFloatingRep, is64BitRep, 
-                         PrimRep(..), getPrimRepArrayElemSize )
+                         PrimRep(..), getPrimRepSizeInBytes )
 import StixInfo                ( genCodeInfoTable, genBitmapInfoTable,
                          livenessIsSmall, bitmapToIntegers )
 import StixMacro       ( macroCode, checkCode )
@@ -49,7 +49,7 @@ import CmdLineOpts    ( opt_Static, opt_EnsureSplittableC )
 import Outputable      ( assertPanic )
 
 -- DEBUGGING ONLY
---import IOExts                ( trace )
+--import TRACE         ( trace )
 --import Outputable    ( showSDoc )
 --import MachOp                ( pprMachOp )
 
@@ -243,8 +243,8 @@ Here we handle top-level things, like @CCodeBlock@s and
 
     -- We need to promote any item smaller than a word to a word
     promote_to_word pk 
-       | getPrimRepArrayElemSize pk >= getPrimRepArrayElemSize IntRep  = pk
-       | otherwise                                                     = IntRep
+       | getPrimRepSizeInBytes pk >= getPrimRepSizeInBytes IntRep  = pk
+       | otherwise                                                 = IntRep
 \end{code}
 
 Now the individual AbstractC statements.