summaryrefslogtreecommitdiff
path: root/compiler/GHC/Driver/Main.hs
diff options
context:
space:
mode:
authorAndre Marianiello <andremarianiello@users.noreply.github.com>2022-05-08 15:24:17 -0400
committerandremarianiello <andre.marianiello@gmail.com>2022-05-12 02:15:48 +0000
commit3a022baa1967e2df2ed19341de38b004dc07c04f (patch)
tree0f41c5edb4a320570097d3a2f9e7237f0e8117cb /compiler/GHC/Driver/Main.hs
parenta2dcad4e6f75c08aacc5902a20ca4c773819d7b7 (diff)
downloadhaskell-3a022baa1967e2df2ed19341de38b004dc07c04f.tar.gz
Remove Module argument from initCmmParserConfig
Diffstat (limited to 'compiler/GHC/Driver/Main.hs')
-rw-r--r--compiler/GHC/Driver/Main.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/GHC/Driver/Main.hs b/compiler/GHC/Driver/Main.hs
index 2e42a9767a..f45cdc8020 100644
--- a/compiler/GHC/Driver/Main.hs
+++ b/compiler/GHC/Driver/Main.hs
@@ -1746,8 +1746,7 @@ hscCompileCmmFile hsc_env original_filename filename output_filename = runHsc hs
-- lest we reproduce #11784.
mod_name = mkModuleName $ "Cmm$" ++ original_filename
cmm_mod = mkHomeModule home_unit mod_name
- no_module = panic "hscCompileCmmFile: no module"
- cmmpConfig = initCmmParserConfig dflags no_module
+ cmmpConfig = initCmmParserConfig dflags
(cmm, ents) <- ioMsgMaybe
$ do
(warns,errs,cmm) <- withTiming logger (text "ParseCmm"<+>brackets (text filename)) (\_ -> ())