diff options
author | Leif Metcalf <me@leif.nz> | 2021-01-20 15:33:47 +1300 |
---|---|---|
committer | Leif Metcalf <me@leif.nz> | 2021-01-25 00:55:12 -0500 |
commit | 53b8feaca2673cfae023c41745c137d897cd4ddc (patch) | |
tree | aa90f3abc1f468e486b31467ce00f4b5a6351784 /compiler/GHC/SysTools | |
parent | b18d9e97252c9dd12f08d3e6f56bfec6a6d2469a (diff) | |
download | haskell-wip/leif/remove-stg-lam.tar.gz |
Remove StgLamwip/leif/remove-stg-lam
StgLam is used exclusively in the work of CoreToStg, but there's nothing
in the type of StgExpr that indicates this, so we're forced throughout
the Stg.* codebase to handle cases like:
case expr of
...
StgLam lam -> panic "Unexpected StgLam"
...
This patch removes the StgLam constructor from the base StgExpr so these
cases no longer need to be handled. Instead, we use a new intermediate
type in CoreToStg, PreStgRhs, to represent the RHS expression of a
binding.
Diffstat (limited to 'compiler/GHC/SysTools')
0 files changed, 0 insertions, 0 deletions