#include "HsVersions.h"
import Id ( Id, idCafInfo )
-import IdInfo ( CafInfo(..) )
+import IdInfo ( mayHaveCafRefs )
import StgSyn
import UniqFM
extra_refs = filter (`notElem` srt) filtered_g
bind_srt = reverse (extra_refs ++ srt)
in
- ASSERT2(null bind_srt || mayHaveCafRefs binder, ppr binder)
+ ASSERT2(null bind_srt || idMayHaveCafRefs binder, ppr binder)
case rhs of
StgRhsClosure _ _ _ _ _ _ _ ->
srtTopBind (StgRec bs) =
- ASSERT(null bind_srt || all mayHaveCafRefs binders)
+ ASSERT(null bind_srt || all idMayHaveCafRefs binders)
(attach_srt_bind (StgRec new_bs) 0 (length bind_srt), bind_srt)
where
(binders,rhss) = unzip bs
globalRefArg :: StgArg -> [Id]
globalRefArg (StgVarArg id)
- | mayHaveCafRefs id = [id]
- | otherwise = []
+ | idMayHaveCafRefs id = [id]
+ | otherwise = []
globalRefArg _ = []
-mayHaveCafRefs id
- = case idCafInfo id of
- MayHaveCafRefs -> True
- NoCafRefs -> False
+idMayHaveCafRefs id = mayHaveCafRefs (idCafInfo id)
\end{code}
-----------------------------------------------------------------------------