diff options
Diffstat (limited to 'ghc/compiler/codeGen')
-rw-r--r-- | ghc/compiler/codeGen/CgCase.lhs | 4 | ||||
-rw-r--r-- | ghc/compiler/codeGen/CgRetConv.lhs | 4 | ||||
-rw-r--r-- | ghc/compiler/codeGen/ClosureInfo.lhs | 8 |
3 files changed, 9 insertions, 7 deletions
diff --git a/ghc/compiler/codeGen/CgCase.lhs b/ghc/compiler/codeGen/CgCase.lhs index b9c3149194..d64755b4b8 100644 --- a/ghc/compiler/codeGen/CgCase.lhs +++ b/ghc/compiler/codeGen/CgCase.lhs @@ -1,7 +1,7 @@ % % (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 % -% $Id: CgCase.lhs,v 1.41 2000/04/13 20:41:30 panne Exp $ +% $Id: CgCase.lhs,v 1.42 2000/05/25 12:41:15 simonpj Exp $ % %******************************************************** %* * @@ -59,7 +59,7 @@ import PrimRep ( getPrimRepSize, retPrimRepSize, PrimRep(..) ) import TyCon ( TyCon, isEnumerationTyCon, isUnboxedTupleTyCon, isNewTyCon, isAlgTyCon, isFunTyCon, isPrimTyCon, - tyConDataCons, tyConFamilySize ) + ) import Type ( Type, typePrimRep, splitAlgTyConApp, splitTyConApp_maybe, repType ) import PprType ( {- instance Outputable Type -} ) diff --git a/ghc/compiler/codeGen/CgRetConv.lhs b/ghc/compiler/codeGen/CgRetConv.lhs index f02b4d6590..e292ea1d9f 100644 --- a/ghc/compiler/codeGen/CgRetConv.lhs +++ b/ghc/compiler/codeGen/CgRetConv.lhs @@ -1,7 +1,7 @@ % % (c) The GRASP Project, Glasgow University, 1992-1998 % -% $Id: CgRetConv.lhs,v 1.21 2000/04/05 16:25:51 simonpj Exp $ +% $Id: CgRetConv.lhs,v 1.22 2000/05/25 12:41:15 simonpj Exp $ % \section[CgRetConv]{Return conventions for the code generator} @@ -30,7 +30,7 @@ import Maybes ( catMaybes ) import DataCon ( DataCon ) import PrimOp ( PrimOp{-instance Outputable-} ) import PrimRep ( isFloatingRep, PrimRep(..), is64BitRep ) -import TyCon ( TyCon, tyConDataCons, tyConFamilySize ) +import TyCon ( TyCon, tyConFamilySize ) import Type ( Type, typePrimRep, isUnLiftedType ) import Util ( isn'tIn ) diff --git a/ghc/compiler/codeGen/ClosureInfo.lhs b/ghc/compiler/codeGen/ClosureInfo.lhs index d107e7eb61..302dbc4438 100644 --- a/ghc/compiler/codeGen/ClosureInfo.lhs +++ b/ghc/compiler/codeGen/ClosureInfo.lhs @@ -1,7 +1,7 @@ % % (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 % -% $Id: ClosureInfo.lhs,v 1.41 2000/04/05 15:17:38 simonmar Exp $ +% $Id: ClosureInfo.lhs,v 1.42 2000/05/25 12:41:15 simonpj Exp $ % \section[ClosureInfo]{Data structures which describe closures} @@ -81,8 +81,9 @@ import CmdLineOpts ( opt_SccProfilingOn, opt_OmitBlackHoling, opt_SMP ) import Id ( Id, idType, idArityInfo ) import DataCon ( DataCon, dataConTag, fIRST_TAG, dataConTyCon, - isNullaryDataCon, isTupleCon, dataConName + isNullaryDataCon, dataConName ) +import TyCon ( isBoxedTupleTyCon ) import IdInfo ( ArityInfo(..) ) import Name ( Name, isExternallyVisibleName, nameUnique, getOccName ) @@ -238,7 +239,8 @@ mkConLFInfo :: DataCon -> LambdaFormInfo mkConLFInfo con = -- the isNullaryDataCon will do this: ASSERT(isDataCon con) - (if isTupleCon con then LFTuple else LFCon) con (isNullaryDataCon con) + (if isBoxedTupleTyCon (dataConTyCon con) then LFTuple else LFCon) + con (isNullaryDataCon con) mkSelectorLFInfo rhs_ty offset updatable = LFThunk rhs_ty NotTopLevel False updatable (SelectorThunk offset) |