summaryrefslogtreecommitdiff
path: root/compiler/GHC/Driver/CodeOutput.hs
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-10-28 21:05:34 +0200
committerKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-11-04 15:54:25 +0100
commit4dd9e74bb216244c77e973eca8047447dddd1509 (patch)
treee11a998f4ca8a25badfb289e2ff540347e78acea /compiler/GHC/Driver/CodeOutput.hs
parent311251543f2e37af4a121e58028bfc46267a7fc9 (diff)
downloadhaskell-wip/strings-refactor3.tar.gz
Minor refactor around FastStringswip/strings-refactor3
Pass FastStrings to functions directly, to make sure the rule for fsLit "literal" fires. Remove SDoc indirection in GHCi.UI.Tags and GHC.Unit.Module.Graph.
Diffstat (limited to 'compiler/GHC/Driver/CodeOutput.hs')
-rw-r--r--compiler/GHC/Driver/CodeOutput.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/GHC/Driver/CodeOutput.hs b/compiler/GHC/Driver/CodeOutput.hs
index 448c4c864e..2e56336cba 100644
--- a/compiler/GHC/Driver/CodeOutput.hs
+++ b/compiler/GHC/Driver/CodeOutput.hs
@@ -17,6 +17,7 @@ where
import GHC.Prelude
import GHC.Platform
import GHC.ForeignSrcLang
+import GHC.Data.FastString
import GHC.CmmToAsm ( nativeCodeGen )
import GHC.CmmToLlvm ( llvmCodeGen )
@@ -331,7 +332,7 @@ profilingInitCode platform this_mod (local_CCs, singleton_CCSs)
initializerCStub platform fn_name decls body
where
pdocC = pprCLabel platform
- fn_name = mkInitializerStubLabel this_mod "prof_init"
+ fn_name = mkInitializerStubLabel this_mod (fsLit "prof_init")
decls = vcat
$ map emit_cc_decl local_CCs
++ map emit_ccs_decl singleton_CCSs
@@ -374,7 +375,7 @@ ipInitCode do_info_table platform this_mod
| not do_info_table = mempty
| otherwise = initializerCStub platform fn_nm ipe_buffer_decl body
where
- fn_nm = mkInitializerStubLabel this_mod "ip_init"
+ fn_nm = mkInitializerStubLabel this_mod (fsLit "ip_init")
body = text "registerInfoProvList" <> parens (text "&" <> ipe_buffer_label) <> semi