summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsof <unknown>1997-10-19 21:49:12 +0000
committersof <unknown>1997-10-19 21:49:12 +0000
commitd6de1c958fd66c94fc6a7dca59402983be8d7408 (patch)
tree15dc1e9fb53d4dab27eec918c94b551ed2c8e851
parentbe8eaf033d0ce56d84b1463d196fd386eed883dc (diff)
downloadhaskell-d6de1c958fd66c94fc6a7dca59402983be8d7408.tar.gz
[project @ 1997-10-19 21:48:43 by sof]
Removed use of opt_CompilingGhcInternals
-rw-r--r--ghc/compiler/codeGen/CodeGen.lhs15
-rw-r--r--ghc/compiler/deSugar/DsBinds.lhs7
2 files changed, 11 insertions, 11 deletions
diff --git a/ghc/compiler/codeGen/CodeGen.lhs b/ghc/compiler/codeGen/CodeGen.lhs
index 4865d4ebab..bd164e7495 100644
--- a/ghc/compiler/codeGen/CodeGen.lhs
+++ b/ghc/compiler/codeGen/CodeGen.lhs
@@ -32,8 +32,8 @@ import CgClosure ( cgTopRhsClosure )
import CgCon ( cgTopRhsCon )
import CgConTbls ( genStaticConBits )
import ClosureInfo ( mkClosureLFInfo )
-import CmdLineOpts ( opt_SccProfilingOn, opt_CompilingGhcInternals,
- opt_EnsureSplittableC, opt_SccGroup
+import CmdLineOpts ( opt_SccProfilingOn, opt_EnsureSplittableC,
+ opt_SccGroup
)
import CostCentre ( CostCentre )
import CStrings ( modnameToC )
@@ -61,7 +61,6 @@ codeGen :: FAST_STRING -- module name
codeGen mod_name (local_CCs, extern_CCs) import_names gen_tycons tycon_specs stg_pgm
= let
doing_profiling = opt_SccProfilingOn
- compiling_prelude = opt_CompilingGhcInternals
maybe_split = if opt_EnsureSplittableC then CSplitMarker else AbsCNop
cinfo = MkCompInfo mod_name
in
@@ -80,15 +79,11 @@ codeGen mod_name (local_CCs, extern_CCs) import_names gen_tycons tycon_specs stg
-- (The local cost-centres involved in this are passed
-- into the code-generator, as are the imported-modules' names.)
--
- -- Note: we don't register/etc if compiling Prelude bits.
-
+ --
mkAbstractCs [
- if compiling_prelude
- then AbsCNop
- else mkAbstractCs [mkAbstractCs (map (CCostCentreDecl True) local_CCs),
+ mkAbstractCs [mkAbstractCs (map (CCostCentreDecl True) local_CCs),
mkAbstractCs (map (CCostCentreDecl False) extern_CCs),
- mkCcRegister local_CCs import_names],
-
+ mkCcRegister local_CCs import_names]],
genStaticConBits cinfo gen_tycons tycon_specs,
initC cinfo (cgTopBindings maybe_split stg_pgm) ]
where
diff --git a/ghc/compiler/deSugar/DsBinds.lhs b/ghc/compiler/deSugar/DsBinds.lhs
index 0d1665329a..bfd4634dc8 100644
--- a/ghc/compiler/deSugar/DsBinds.lhs
+++ b/ghc/compiler/deSugar/DsBinds.lhs
@@ -33,7 +33,8 @@ import Match ( matchWrapper )
import BasicTypes ( SYN_IE(Module) )
import CmdLineOpts ( opt_SccProfilingOn, opt_AutoSccsOnAllToplevs,
- opt_AutoSccsOnExportedToplevs, opt_CompilingGhcInternals )
+ opt_AutoSccsOnExportedToplevs
+ )
import CostCentre ( mkAutoCC, IsCafCC(..), mkAllDictsCC, preludeDictsCostCentre )
import Id ( idType, SYN_IE(DictVar), GenId, SYN_IE(Id) )
--ToDo: rm import ListSetOps ( minusList, intersectLists )
@@ -209,8 +210,10 @@ addDictScc var rhs
|| not (isDictTy (idType var))
= returnDs rhs -- That's easy: do nothing
+{-
| opt_CompilingGhcInternals
= returnDs (SCC prel_dicts_cc rhs)
+-}
| otherwise
= getModuleAndGroupDs `thenDs` \ (mod, grp) ->
@@ -218,5 +221,7 @@ addDictScc var rhs
-- ToDo: do -dicts-all flag (mark dict things with individual CCs)
returnDs (SCC (mkAllDictsCC mod grp False) rhs)
+{- UNUSED:
prel_dicts_cc = preludeDictsCostCentre False{-not dupd-} -- ditto
+-}
\end{code}