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,323
Issues
4,323
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
361
Merge Requests
361
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
06dc1813
Commit
06dc1813
authored
Jul 29, 2011
by
batterseapower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We no longer need to mark Entry as local or not
parent
76b93dcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
compiler/cmm/CLabel.hs
compiler/cmm/CLabel.hs
+5
-6
No files found.
compiler/cmm/CLabel.hs
View file @
06dc1813
...
...
@@ -286,7 +286,7 @@ data IdLabelInfo
=
Closure
-- ^ Label for closure
|
SRT
-- ^ Static reference table
|
InfoTable
IsLocal
-- ^ Info tables for closures; always read-only
|
Entry
IsLocal
-- ^ Entry point
|
Entry
-- ^ Entry point
|
Slow
-- ^ Slow entry point
|
RednCounts
-- ^ Label of place to keep Ticky-ticky info for this Id
...
...
@@ -361,12 +361,12 @@ mkRednCountsLabel name c = IdLabel name c RednCounts
-- These have local & (possibly) external variants:
mkLocalClosureLabel
name
c
=
IdLabel
name
c
Closure
mkLocalInfoTableLabel
name
c
=
IdLabel
name
c
(
InfoTable
True
)
mkLocalEntryLabel
name
c
=
IdLabel
name
c
(
Entry
True
)
mkLocalEntryLabel
name
c
=
IdLabel
name
c
Entry
mkLocalClosureTableLabel
name
c
=
IdLabel
name
c
ClosureTable
mkClosureLabel
name
c
=
IdLabel
name
c
Closure
mkInfoTableLabel
name
c
=
IdLabel
name
c
(
InfoTable
False
)
mkEntryLabel
name
c
=
IdLabel
name
c
(
Entry
False
)
mkEntryLabel
name
c
=
IdLabel
name
c
Entry
mkClosureTableLabel
name
c
=
IdLabel
name
c
ClosureTable
mkLocalConInfoTableLabel
c
con
=
IdLabel
con
c
ConInfoTable
mkLocalConEntryLabel
c
con
=
IdLabel
con
c
ConEntry
...
...
@@ -503,7 +503,7 @@ mkPlainModuleInitLabel mod = PlainModuleInitLabel mod
-- Brutal method of obtaining a closure label
cvtToClosureLbl
(
IdLabel
n
c
(
InfoTable
_
))
=
IdLabel
n
c
Closure
cvtToClosureLbl
(
IdLabel
n
c
(
Entry
_
))
=
IdLabel
n
c
Closure
cvtToClosureLbl
(
IdLabel
n
c
Entry
)
=
IdLabel
n
c
Closure
cvtToClosureLbl
(
IdLabel
n
c
ConEntry
)
=
IdLabel
n
c
Closure
cvtToClosureLbl
(
IdLabel
n
c
RednCounts
)
=
IdLabel
n
c
Closure
cvtToClosureLbl
l
@
(
IdLabel
n
c
Closure
)
=
l
...
...
@@ -676,7 +676,6 @@ externallyVisibleCLabel (LargeSRTLabel _) = False
externallyVisibleIdLabel
::
IdLabelInfo
->
Bool
externallyVisibleIdLabel
SRT
=
False
externallyVisibleIdLabel
(
Entry
lcl
)
=
not
lcl
externallyVisibleIdLabel
(
InfoTable
lcl
)
=
not
lcl
externallyVisibleIdLabel
_
=
True
...
...
@@ -964,7 +963,7 @@ ppIdFlavor x = pp_cSEP <>
Closure
->
ptext
(
sLit
"closure"
)
SRT
->
ptext
(
sLit
"srt"
)
InfoTable
_
->
ptext
(
sLit
"info"
)
Entry
_
->
ptext
(
sLit
"entry"
)
Entry
->
ptext
(
sLit
"entry"
)
Slow
->
ptext
(
sLit
"slow"
)
RednCounts
->
ptext
(
sLit
"ct"
)
ConEntry
->
ptext
(
sLit
"con_entry"
)
...
...
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