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
7950f46c
Commit
7950f46c
authored
Mar 17, 2012
by
batterseapower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove StgTypeArg since it was never used and is probably broken anyway
parent
c08df442
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
16 deletions
+4
-16
compiler/codeGen/CgBindery.lhs
compiler/codeGen/CgBindery.lhs
+3
-6
compiler/codeGen/StgCmmEnv.hs
compiler/codeGen/StgCmmEnv.hs
+0
-1
compiler/stgSyn/StgLint.lhs
compiler/stgSyn/StgLint.lhs
+0
-1
compiler/stgSyn/StgSyn.lhs
compiler/stgSyn/StgSyn.lhs
+1
-8
No files found.
compiler/codeGen/CgBindery.lhs
View file @
7950f46c
...
...
@@ -411,15 +411,12 @@ getArgAmode (StgLitArg lit)
= do { cmm_lit <- cgLit lit
; return (typeCgRep (literalType lit), CmmLit cmm_lit) }
getArgAmode (StgTypeArg _) = panic "getArgAmode: type arg"
getArgAmodes :: [StgArg] -> FCode [(CgRep, CmmExpr)]
getArgAmodes [] = returnFC []
getArgAmodes (atom:atoms)
| isStgTypeArg atom = getArgAmodes atoms
| otherwise = do { amode <- getArgAmode atom
; amodes <- getArgAmodes atoms
; return ( amode : amodes ) }
= do { amode <- getArgAmode atom
; amodes <- getArgAmodes atoms
; return ( amode : amodes ) }
\end{code}
%************************************************************************
...
...
compiler/codeGen/StgCmmEnv.hs
View file @
7950f46c
...
...
@@ -201,7 +201,6 @@ getArgAmode :: NonVoid StgArg -> FCode CmmExpr
getArgAmode
(
NonVoid
(
StgVarArg
var
))
=
do
{
info
<-
getCgIdInfo
var
;
return
(
idInfoToAmode
info
)
}
getArgAmode
(
NonVoid
(
StgLitArg
lit
))
=
liftM
CmmLit
$
cgLit
lit
getArgAmode
(
NonVoid
(
StgTypeArg
_
))
=
panic
"getArgAmode: type arg"
getNonVoidArgAmodes
::
[
StgArg
]
->
FCode
[
CmmExpr
]
-- NB: Filters out void args,
...
...
compiler/stgSyn/StgLint.lhs
View file @
7950f46c
...
...
@@ -83,7 +83,6 @@ lintStgBindings whodunnit binds
lintStgArg :: StgArg -> LintM (Maybe Type)
lintStgArg (StgLitArg lit) = return (Just (literalType lit))
lintStgArg (StgVarArg v) = lintStgVar v
lintStgArg a = pprPanic "lintStgArg" (ppr a)
lintStgVar :: Id -> LintM (Maybe Kind)
lintStgVar v = do checkInScope v
...
...
compiler/stgSyn/StgSyn.lhs
View file @
7950f46c
...
...
@@ -35,7 +35,7 @@ module StgSyn (
-- utils
stgBindHasCafRefs, stgArgHasCafRefs, stgRhsArity,
isDllConApp,
isStgTypeArg,
isDllConApp,
stgArgType,
pprStgBinding, pprStgBindings, pprStgBindingsWithSRTs,
...
...
@@ -99,11 +99,6 @@ data GenStgBinding bndr occ
data GenStgArg occ
= StgVarArg occ
| StgLitArg Literal
| StgTypeArg Type -- For when we want to preserve all type info
isStgTypeArg :: StgArg -> Bool
isStgTypeArg (StgTypeArg _) = True
isStgTypeArg _ = False
-- | Does this constructor application refer to
-- anything in a different *Windows* DLL?
...
...
@@ -144,7 +139,6 @@ isAddrRep _ = False
stgArgType :: StgArg -> Type
stgArgType (StgVarArg v) = idType v
stgArgType (StgLitArg lit) = literalType lit
stgArgType (StgTypeArg _) = panic "stgArgType called on stgTypeArg"
\end{code}
%************************************************************************
...
...
@@ -683,7 +677,6 @@ instance (Outputable bndr, Outputable bdee, Ord bdee)
pprStgArg :: (Outputable bdee) => GenStgArg bdee -> SDoc
pprStgArg (StgVarArg var) = ppr var
pprStgArg (StgLitArg con) = ppr con
pprStgArg (StgTypeArg ty) = char '@' <+> ppr ty
pprStgExpr :: (Outputable bndr, Outputable bdee, Ord bdee)
=> GenStgExpr bndr bdee -> SDoc
...
...
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