Generate statements to set infotable field values for the given ClosureInfo
Depending on debug flag, it generates h$setObjInfo(...) or h$o(...). The latter form doesn't store the pretty-printed name in the closure to save space.
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11
Moduleghc-9.14.1GHC2021
Generate statements to set infotable field values for the given ClosureInfo
Depending on debug flag, it generates h$setObjInfo(...) or h$o(...). The latter form doesn't store the pretty-printed name in the closure to save space.
Special case of closures that do not need to generate any fresh names
We use this in the RTS to determine the number of generated closures. These closures use the names cached here, so we bind them to the same number.