Skip to content
Snippets Groups Projects
Commit bbdb6286 authored by Sylvain Henry's avatar Sylvain Henry Committed by Marge Bot
Browse files

JS linker: filter unboxed tuples

parent d91d00fc
No related branches found
No related tags found
No related merge requests found
......@@ -341,10 +341,16 @@ collectIds unfloated b =
in seqList xs `seq` xs
where
acceptId i = all ($ i) [not . isForbidden] -- fixme test this: [isExported[isGlobalId, not.isForbidden]
-- the GHC.Prim module has no js source file
isForbidden i
| Just m <- nameModule_maybe (getName i) = m == gHC_PRIM
| otherwise = False
-- the GHC.Prim module has no js source file
| Just m <- nameModule_maybe (getName i)
, m == gHC_PRIM
= True
-- unboxed tuples have no definition
| isUnboxedTupleDataConLikeName (getName i)
= True
| otherwise
= False
-----------------------------------------------------
-- Live vars
......
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