summaryrefslogtreecommitdiff
path: root/compiler/GHC/StgToCmm
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/StgToCmm')
-rw-r--r--compiler/GHC/StgToCmm/Bind.hs2
-rw-r--r--compiler/GHC/StgToCmm/Closure.hs13
2 files changed, 3 insertions, 12 deletions
diff --git a/compiler/GHC/StgToCmm/Bind.hs b/compiler/GHC/StgToCmm/Bind.hs
index 25d04b323c..17d8556b15 100644
--- a/compiler/GHC/StgToCmm/Bind.hs
+++ b/compiler/GHC/StgToCmm/Bind.hs
@@ -81,7 +81,7 @@ cgTopRhsClosure :: Platform
-> (CgIdInfo, FCode ())
cgTopRhsClosure platform rec id ccs upd_flag args body =
- let closure_label = mkLocalClosureLabel (idName id) (idCafInfo id)
+ let closure_label = mkClosureLabel (idName id) (idCafInfo id)
cg_id_info = litIdInfo platform id lf_info (CmmLabel closure_label)
lf_info = mkClosureLFInfo platform id TopLevel [] upd_flag args
in (cg_id_info, gen_code lf_info closure_label)
diff --git a/compiler/GHC/StgToCmm/Closure.hs b/compiler/GHC/StgToCmm/Closure.hs
index 0d048a6be8..2609606292 100644
--- a/compiler/GHC/StgToCmm/Closure.hs
+++ b/compiler/GHC/StgToCmm/Closure.hs
@@ -848,23 +848,14 @@ mkClosureInfoTableLabel platform id lf_info
LFThunk _ _ upd_flag (ApThunk arity) _
-> mkApInfoTableLabel platform upd_flag arity
- LFThunk{} -> std_mk_lbl name cafs
- LFReEntrant{} -> std_mk_lbl name cafs
+ LFThunk{} -> mkInfoTableLabel name cafs
+ LFReEntrant{} -> mkInfoTableLabel name cafs
_other -> panic "closureInfoTableLabel"
where
name = idName id
- std_mk_lbl | is_local = mkLocalInfoTableLabel
- | otherwise = mkInfoTableLabel
-
cafs = idCafInfo id
- is_local = isDataConWorkId id
- -- Make the _info pointer for the implicit datacon worker
- -- binding local. The reason we can do this is that importing
- -- code always either uses the _closure or _con_info. By the
- -- invariants in "GHC.CoreToStg.Prep" anything else gets eta expanded.
-
-- | thunkEntryLabel is a local help function, not exported. It's used from
-- getCallMethod.