summaryrefslogtreecommitdiff
path: root/compiler/GHC/Driver/CodeOutput.hs
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-05-07 19:01:37 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-06-13 02:13:02 -0400
commit8dc71f5577a541168951371bd55b51a588b57813 (patch)
tree8f821274d3b5a7a9a8595c3c4091a18d2257a5eb /compiler/GHC/Driver/CodeOutput.hs
parent72d086106d49bc18277f3a066e671e87e9b37a1b (diff)
downloadhaskell-8dc71f5577a541168951371bd55b51a588b57813.tar.gz
Rename unsafeGetUnitInfo into unsafeLookupUnit
Diffstat (limited to 'compiler/GHC/Driver/CodeOutput.hs')
-rw-r--r--compiler/GHC/Driver/CodeOutput.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Driver/CodeOutput.hs b/compiler/GHC/Driver/CodeOutput.hs
index 0c77ffc477..c614606186 100644
--- a/compiler/GHC/Driver/CodeOutput.hs
+++ b/compiler/GHC/Driver/CodeOutput.hs
@@ -131,7 +131,7 @@ outputC dflags filenm cmm_stream packages
-- * -#include options from the cmdline and OPTIONS pragmas
-- * the _stub.h file, if there is one.
--
- let rts = unsafeGetUnitInfo dflags rtsUnitId
+ let rts = unsafeLookupUnit dflags rtsUnitId
let cc_injects = unlines (map mk_include (unitIncludes rts))
mk_include h_file =
@@ -223,7 +223,7 @@ outputForeignStubs dflags mod location stubs
-- we need the #includes from the rts package for the stub files
let rts_includes =
- let rts_pkg = unsafeGetUnitInfo dflags rtsUnitId in
+ let rts_pkg = unsafeLookupUnit dflags rtsUnitId in
concatMap mk_include (unitIncludes rts_pkg)
mk_include i = "#include \"" ++ i ++ "\"\n"