Remove platform CPP from nativeGen/PPC/CodeGen.hs
[ghc-hetmet.git] / compiler / codeGen / StgCmmCon.hs
index 3226f0c..368bc53 100644 (file)
@@ -25,9 +25,9 @@ import StgCmmUtils
 import StgCmmClosure
 import StgCmmProf
 
-import Cmm
+import CmmExpr
 import CLabel
-import MkZipCfgCmm (CmmAGraph, mkNop)
+import MkGraph
 import SMRep
 import CostCentre
 import Module
@@ -39,9 +39,13 @@ import Literal
 import PrelInfo
 import Outputable
 import Util             ( lengthIs )
-import StaticFlags     ( opt_PIC )
+
 import Data.Char
 
+#if defined(mingw32_TARGET_OS)
+import StaticFlags     ( opt_PIC )
+#endif
+
 
 ---------------------------------------------------------------
 --     Top-level constructors
@@ -189,7 +193,7 @@ buildDynCon binder ccs con args
   = do { let (cl_info, args_w_offsets) = layOutDynConstr con (addArgReps args)
                -- No void args in args_w_offsets
        ; (tmp, init) <- allocDynClosure cl_info use_cc blame_cc args_w_offsets
-       ; return (regIdInfo binder lf_info tmp, init) }
+       ; regIdInfo binder lf_info tmp init }
   where
     lf_info = mkConLFInfo con