summaryrefslogtreecommitdiff
path: root/compiler/cmm/CLabel.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-04-30 12:03:28 +0100
committerIan Lynagh <igloo@earth.li>2011-04-30 12:03:28 +0100
commit470bedbbe60db2b9cc85dccafb6e06d9a841419d (patch)
treeb34816048053d26f8bb6ad46cbd238e505c969f7 /compiler/cmm/CLabel.hs
parentd1bffa693adfa48ef65240bb3c097f5f5f77868e (diff)
downloadhaskell-470bedbbe60db2b9cc85dccafb6e06d9a841419d.tar.gz
Don't expose the cas definition to .hc files
This is more pleasant than having the C generator check whether the function it's calling is cas, and not generate a prototype if so.
Diffstat (limited to 'compiler/cmm/CLabel.hs')
-rw-r--r--compiler/cmm/CLabel.hs10
1 files changed, 1 insertions, 9 deletions
diff --git a/compiler/cmm/CLabel.hs b/compiler/cmm/CLabel.hs
index 901b13b342..c62f0eaff5 100644
--- a/compiler/cmm/CLabel.hs
+++ b/compiler/cmm/CLabel.hs
@@ -101,7 +101,7 @@ module CLabel (
hasCAF,
infoLblToEntryLbl, entryLblToInfoLbl, cvtToClosureLbl, cvtToSRTLbl,
needsCDecl, isAsmTemp, maybeAsmTemp, externallyVisibleCLabel,
- isMathFun, isCas,
+ isMathFun,
isCFunctionLabel, isGcPtrLabel, labelDynamic,
pprCLabel
@@ -590,14 +590,6 @@ maybeAsmTemp (AsmTempLabel uq) = Just uq
maybeAsmTemp _ = Nothing
--- | Check whether a label corresponds to our cas function.
--- We #include the prototype for this, so we need to avoid
--- generating out own C prototypes.
-isCas :: CLabel -> Bool
-isCas (CmmLabel pkgId fn _) = pkgId == rtsPackageId && fn == fsLit "cas"
-isCas _ = False
-
-
-- | Check whether a label corresponds to a C function that has
-- a prototype in a system header somehere, or is built-in
-- to the C compiler. For these labels we avoid generating our