Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,322
Issues
4,322
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
362
Merge Requests
362
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
c08df442
Commit
c08df442
authored
Mar 17, 2012
by
batterseapower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the unused Type field from StgLam
parent
921530b4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
compiler/stgSyn/CoreToStg.lhs
compiler/stgSyn/CoreToStg.lhs
+3
-3
compiler/stgSyn/StgLint.lhs
compiler/stgSyn/StgLint.lhs
+1
-1
compiler/stgSyn/StgSyn.lhs
compiler/stgSyn/StgSyn.lhs
+1
-3
No files found.
compiler/stgSyn/CoreToStg.lhs
View file @
c08df442
...
...
@@ -277,7 +277,7 @@ mkTopStgRhs :: DynFlags -> FreeVarsInfo
-> SRT -> StgBinderInfo -> StgExpr
-> StgRhs
mkTopStgRhs _ rhs_fvs srt binder_info (StgLam
_
bndrs body)
mkTopStgRhs _ rhs_fvs srt binder_info (StgLam bndrs body)
= StgRhsClosure noCCS binder_info
(getFVs rhs_fvs)
ReEntrant
...
...
@@ -343,7 +343,7 @@ coreToStgExpr expr@(Lam _ _)
fvs = args' `minusFVBinders` body_fvs
escs = body_escs `delVarSetList` args'
result_expr | null args' = body
| otherwise = StgLam
(exprType expr)
args' body
| otherwise = StgLam args' body
return (result_expr, fvs, escs)
...
...
@@ -783,7 +783,7 @@ mkStgRhs :: FreeVarsInfo -> SRT -> StgBinderInfo -> StgExpr -> StgRhs
mkStgRhs _ _ _ (StgConApp con args) = StgRhsCon noCCS con args
mkStgRhs rhs_fvs srt binder_info (StgLam
_
bndrs body)
mkStgRhs rhs_fvs srt binder_info (StgLam bndrs body)
= StgRhsClosure noCCS binder_info
(getFVs rhs_fvs)
ReEntrant
...
...
compiler/stgSyn/StgLint.lhs
View file @
c08df442
...
...
@@ -175,7 +175,7 @@ lintStgExpr (StgOpApp _ args res_ty) = runMaybeT $ do
_maybe_arg_tys <- mapM (MaybeT . lintStgArg) args
return res_ty
lintStgExpr (StgLam
_
bndrs _) = do
lintStgExpr (StgLam bndrs _) = do
addErrL (ptext (sLit "Unexpected StgLam") <+> ppr bndrs)
return Nothing
...
...
compiler/stgSyn/StgSyn.lhs
View file @
c08df442
...
...
@@ -212,8 +212,6 @@ finished it encodes (\x -> e) as (let f = \x -> e in f)
\begin{code}
| StgLam
Type -- Type of whole lambda (useful when
-- making a binder for it)
[bndr]
StgExpr -- Body of lambda
\end{code}
...
...
@@ -702,7 +700,7 @@ pprStgExpr (StgConApp con args)
pprStgExpr (StgOpApp op args _)
= hsep [ pprStgOp op, brackets (interppSP args)]
pprStgExpr (StgLam
_
bndrs body)
pprStgExpr (StgLam bndrs body)
=sep [ char '\\' <+> ppr bndrs <+> ptext (sLit "->"),
pprStgExpr body ]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment