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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
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
Alex D
GHC
Commits
aa6bc700
Commit
aa6bc700
authored
Sep 20, 2012
by
ian@well-typed.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove a couple of unneccesary Platform arguments
parent
54affcef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
compiler/cmm/OldCmmLint.hs
compiler/cmm/OldCmmLint.hs
+1
-3
compiler/cmm/PprCmmDecl.hs
compiler/cmm/PprCmmDecl.hs
+3
-6
No files found.
compiler/cmm/OldCmmLint.hs
View file @
aa6bc700
...
...
@@ -19,7 +19,6 @@ module OldCmmLint (
import
BlockId
import
OldCmm
import
CLabel
import
Outputable
import
OldPprCmm
()
import
FastString
...
...
@@ -50,10 +49,9 @@ runCmmLint _ l p =
lintCmmDecl
::
DynFlags
->
(
GenCmmDecl
h
i
(
ListGraph
CmmStmt
))
->
CmmLint
()
lintCmmDecl
dflags
(
CmmProc
_
lbl
(
ListGraph
blocks
))
=
addLintInfo
(
text
"in proc "
<>
ppr
CLabel
platform
lbl
)
$
=
addLintInfo
(
text
"in proc "
<>
ppr
lbl
)
$
let
labels
=
foldl
(
\
s
b
->
setInsert
(
blockId
b
)
s
)
setEmpty
blocks
in
mapM_
(
lintCmmBlock
dflags
labels
)
blocks
where
platform
=
targetPlatform
dflags
lintCmmDecl
_
(
CmmData
{})
=
return
()
...
...
compiler/cmm/PprCmmDecl.hs
View file @
aa6bc700
...
...
@@ -38,13 +38,11 @@ module PprCmmDecl
)
where
import
CLabel
import
PprCmmExpr
import
Cmm
import
DynFlags
import
Outputable
import
Platform
import
FastString
import
Data.List
...
...
@@ -72,7 +70,7 @@ instance (Outputable d, Outputable info, Outputable i)
ppr
t
=
pprTop
t
instance
Outputable
CmmStatics
where
ppr
x
=
sdocWithPlatform
$
\
platform
->
pprStatics
platform
x
ppr
=
pprStatics
instance
Outputable
CmmStatic
where
ppr
=
pprStatic
...
...
@@ -141,9 +139,8 @@ instance Outputable ForeignHint where
-- Strings are printed as C strings, and we print them as I8[],
-- following C--
--
pprStatics
::
Platform
->
CmmStatics
->
SDoc
pprStatics
platform
(
Statics
lbl
ds
)
=
vcat
((
pprCLabel
platform
lbl
<>
colon
)
:
map
ppr
ds
)
pprStatics
::
CmmStatics
->
SDoc
pprStatics
(
Statics
lbl
ds
)
=
vcat
((
ppr
lbl
<>
colon
)
:
map
ppr
ds
)
pprStatic
::
CmmStatic
->
SDoc
pprStatic
s
=
case
s
of
...
...
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