Skip to content
Snippets Groups Projects
Commit 63181f98 authored by sof's avatar sof
Browse files

[project @ 1997-06-05 21:23:08 by sof]

imports updated
parent 9a205a38
No related merge requests found
...@@ -36,7 +36,14 @@ module AbsCSyn {- ( ...@@ -36,7 +36,14 @@ module AbsCSyn {- (
)-} where )-} where
IMP_Ubiq(){-uitous-} IMP_Ubiq(){-uitous-}
#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 201
IMPORT_DELOOPER(AbsCLoop) IMPORT_DELOOPER(AbsCLoop)
#else
import {-# SOURCE #-} MachMisc
import {-# SOURCE #-} CLabel
import {-# SOURCE #-} ClosureInfo
import {-# SOURCE #-} CgRetConv
#endif
import Constants ( mAX_Vanilla_REG, mAX_Float_REG, import Constants ( mAX_Vanilla_REG, mAX_Float_REG,
mAX_Double_REG, lIVENESS_R1, lIVENESS_R2, mAX_Double_REG, lIVENESS_R1, lIVENESS_R2,
......
...@@ -48,11 +48,21 @@ module CLabel ( ...@@ -48,11 +48,21 @@ module CLabel (
) where ) where
IMP_Ubiq(){-uitous-} IMP_Ubiq(){-uitous-}
#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 201
IMPORT_DELOOPER(AbsCLoop) ( CtrlReturnConvention(..), IMPORT_DELOOPER(AbsCLoop) ( CtrlReturnConvention(..),
ctrlReturnConvAlg ctrlReturnConvAlg
) )
#else
import {-# SOURCE #-} CgRetConv
#endif
#if ! OMIT_NATIVE_CODEGEN #if ! OMIT_NATIVE_CODEGEN
#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 201
IMPORT_DELOOPER(NcgLoop) ( underscorePrefix, fmtAsmLbl ) IMPORT_DELOOPER(NcgLoop) ( underscorePrefix, fmtAsmLbl )
#else
import {-# SOURCE #-} MachMisc ( underscorePrefix, fmtAsmLbl )
#endif
#endif #endif
import CStrings ( pp_cSEP ) import CStrings ( pp_cSEP )
......
...@@ -14,11 +14,11 @@ module CStrings( ...@@ -14,11 +14,11 @@ module CStrings(
) where ) where
IMPORT_1_3(Char (isAlphanum,ord,chr))
CHK_Ubiq() -- debugging consistency check CHK_Ubiq() -- debugging consistency check
import Pretty import Pretty
IMPORT_1_3(Char (isAlphanum,ord,chr))
\end{code} \end{code}
......
...@@ -33,7 +33,11 @@ module HeapOffs ( ...@@ -33,7 +33,11 @@ module HeapOffs (
IMP_Ubiq(){-uitous-} IMP_Ubiq(){-uitous-}
#if ! OMIT_NATIVE_CODEGEN #if ! OMIT_NATIVE_CODEGEN
# if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 201
IMPORT_DELOOPER(AbsCLoop) ( fixedHdrSizeInWords, varHdrSizeInWords ) IMPORT_DELOOPER(AbsCLoop) ( fixedHdrSizeInWords, varHdrSizeInWords )
# else
import {-# SOURCE #-} MachMisc
# endif
#endif #endif
import Maybes ( catMaybes ) import Maybes ( catMaybes )
...@@ -319,7 +323,7 @@ pprHeapOffsetPieces sty int_offs fxdhdr_offs varhdr_offs tothdr_offs ...@@ -319,7 +323,7 @@ pprHeapOffsetPieces sty int_offs fxdhdr_offs varhdr_offs tothdr_offs
where where
pp_hdrs hdr_pp [] = Nothing pp_hdrs hdr_pp [] = Nothing
pp_hdrs hdr_pp [SMRI(rep, n)] | n _EQ_ ILIT(1) = Just ((<>) (text (show rep)) hdr_pp) pp_hdrs hdr_pp [SMRI(rep, n)] | n _EQ_ ILIT(1) = Just ((<>) (text (show rep)) hdr_pp)
pp_hdrs hdr_pp hdrs = Just (parens (sep (punctuate (char '+') pp_hdrs hdr_pp hdrs = Just (parens (hsep (punctuate (char '+')
(map (pp_hdr hdr_pp) hdrs)))) (map (pp_hdr hdr_pp) hdrs))))
pp_hdr :: Doc -> SMRep__Int -> Doc pp_hdr :: Doc -> SMRep__Int -> Doc
......
...@@ -19,7 +19,7 @@ module PprAbsC ( ...@@ -19,7 +19,7 @@ module PprAbsC (
) where ) where
IMP_Ubiq(){-uitous-} IMP_Ubiq(){-uitous-}
IMPORT_DELOOPER(AbsCLoop) -- break its dependence on ClosureInfo
IMPORT_1_3(IO(Handle)) IMPORT_1_3(IO(Handle))
IMPORT_1_3(Char(isDigit,isPrint)) IMPORT_1_3(Char(isDigit,isPrint))
#if __GLASGOW_HASKELL__ == 201 #if __GLASGOW_HASKELL__ == 201
...@@ -28,6 +28,12 @@ IMPORT_1_3(GHCbase(Addr(..)) ) -- to see innards ...@@ -28,6 +28,12 @@ IMPORT_1_3(GHCbase(Addr(..)) ) -- to see innards
import GlaExts (Addr(..)) import GlaExts (Addr(..))
#endif #endif
#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 201
IMPORT_DELOOPER(AbsCLoop) -- break its dependence on ClosureInfo
#else
import {-# SOURCE #-} ClosureInfo
#endif
import AbsCSyn import AbsCSyn
import AbsCUtils ( getAmodeRep, nonemptyAbsC, import AbsCUtils ( getAmodeRep, nonemptyAbsC,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment