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,251
Issues
4,251
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
391
Merge Requests
391
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
9c5572cd
Commit
9c5572cd
authored
May 12, 2020
by
Sylvain Henry
Committed by
Marge Bot
Jun 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove LinkerUnitId type alias
parent
e7272d53
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
compiler/GHC/Runtime/Linker.hs
compiler/GHC/Runtime/Linker.hs
+4
-4
compiler/GHC/Runtime/Linker/Types.hs
compiler/GHC/Runtime/Linker/Types.hs
+1
-5
No files found.
compiler/GHC/Runtime/Linker.hs
View file @
9c5572cd
...
...
@@ -48,7 +48,7 @@ import GHC.Types.Name
import
GHC.Types.Name.Env
import
GHC.Unit.Module
import
GHC.Data.List.SetOps
import
GHC.Runtime.Linker.Types
(
DynLinker
(
..
),
LinkerUnitId
,
PersistentLinkerState
(
..
))
import
GHC.Runtime.Linker.Types
(
DynLinker
(
..
),
PersistentLinkerState
(
..
))
import
GHC.Driver.Session
import
GHC.Types.Basic
import
GHC.Utils.Outputable
...
...
@@ -1227,7 +1227,7 @@ showLS (Framework nm) = "(framework) " ++ nm
-- automatically, and it doesn't matter what order you specify the input
-- packages.
--
linkPackages
::
HscEnv
->
[
Linker
UnitId
]
->
IO
()
linkPackages
::
HscEnv
->
[
UnitId
]
->
IO
()
-- NOTE: in fact, since each module tracks all the packages it depends on,
-- we don't really need to use the package-config dependencies.
--
...
...
@@ -1244,7 +1244,7 @@ linkPackages hsc_env new_pkgs = do
modifyPLS_
dl
$
\
pls
->
do
linkPackages'
hsc_env
new_pkgs
pls
linkPackages'
::
HscEnv
->
[
Linker
UnitId
]
->
PersistentLinkerState
linkPackages'
::
HscEnv
->
[
UnitId
]
->
PersistentLinkerState
->
IO
PersistentLinkerState
linkPackages'
hsc_env
new_pks
pls
=
do
pkgs'
<-
link
(
pkgs_loaded
pls
)
new_pks
...
...
@@ -1253,7 +1253,7 @@ linkPackages' hsc_env new_pks pls = do
dflags
=
hsc_dflags
hsc_env
pkgstate
=
pkgState
dflags
link
::
[
LinkerUnitId
]
->
[
LinkerUnitId
]
->
IO
[
Linker
UnitId
]
link
::
[
UnitId
]
->
[
UnitId
]
->
IO
[
UnitId
]
link
pkgs
new_pkgs
=
foldM
link_one
pkgs
new_pkgs
...
...
compiler/GHC/Runtime/Linker/Types.hs
View file @
9c5572cd
...
...
@@ -9,7 +9,6 @@
module
GHC.Runtime.Linker.Types
(
DynLinker
(
..
),
PersistentLinkerState
(
..
),
LinkerUnitId
,
Linkable
(
..
),
Unlinked
(
..
),
SptEntry
(
..
)
...
...
@@ -55,15 +54,12 @@ data PersistentLinkerState
-- The currently-loaded packages; always object code
-- Held, as usual, in dependency order; though I am not sure if
-- that is really important
pkgs_loaded
::
!
[
Linker
UnitId
],
pkgs_loaded
::
!
[
UnitId
],
-- we need to remember the name of previous temporary DLL/.so
-- libraries so we can link them (see #10322)
temp_sos
::
!
[(
FilePath
,
String
)]
}
-- TODO: Make this type more precise
type
LinkerUnitId
=
UnitId
-- | Information we can use to dynamically link modules into the compiler
data
Linkable
=
LM
{
linkableTime
::
UTCTime
,
-- ^ Time at which this linkable was built
...
...
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