projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 1996-05-06 11:01:29 by partain]
[ghc-hetmet.git]
/
ghc
/
compiler
/
absCSyn
/
CLabel.lhs
diff --git
a/ghc/compiler/absCSyn/CLabel.lhs
b/ghc/compiler/absCSyn/CLabel.lhs
index
a6df009
..
74d2144
100644
(file)
--- a/
ghc/compiler/absCSyn/CLabel.lhs
+++ b/
ghc/compiler/absCSyn/CLabel.lhs
@@
-39,7
+39,10
@@
module CLabel (
needsCDecl, isReadOnly, isAsmTemp, externallyVisibleCLabel,
needsCDecl, isReadOnly, isAsmTemp, externallyVisibleCLabel,
- pprCLabel, pprCLabel_asm
+ pprCLabel
+#if ! OMIT_NATIVE_CODEGEN
+ , pprCLabel_asm
+#endif
#ifdef GRAN
, isSlowEntryCCodeBlock
#ifdef GRAN
, isSlowEntryCCodeBlock
@@
-50,7
+53,9
@@
import Ubiq{-uitous-}
import AbsCLoop ( CtrlReturnConvention(..),
ctrlReturnConvAlg
)
import AbsCLoop ( CtrlReturnConvention(..),
ctrlReturnConvAlg
)
+#if ! OMIT_NATIVE_CODEGEN
import NcgLoop ( underscorePrefix, fmtAsmLbl )
import NcgLoop ( underscorePrefix, fmtAsmLbl )
+#endif
import CStrings ( pp_cSEP )
import Id ( externallyVisibleId, cmpId_withSpecDataCon,
import CStrings ( pp_cSEP )
import Id ( externallyVisibleId, cmpId_withSpecDataCon,
@@
-314,7
+319,9
@@
duplicate declarations in generating C (see @labelSeenTE@ in
\begin{code}
-- specialised for PprAsm: saves lots of arg passing in NCG
\begin{code}
-- specialised for PprAsm: saves lots of arg passing in NCG
+#if ! OMIT_NATIVE_CODEGEN
pprCLabel_asm = pprCLabel (PprForAsm underscorePrefix fmtAsmLbl)
pprCLabel_asm = pprCLabel (PprForAsm underscorePrefix fmtAsmLbl)
+#endif
pprCLabel :: PprStyle -> CLabel -> Unpretty
pprCLabel :: PprStyle -> CLabel -> Unpretty