summaryrefslogtreecommitdiff
path: root/ghc/Main.hs
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2021-02-04 22:38:57 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-03-26 19:00:07 -0400
commit872a9444df4d38cd5dc0fbb7a249d89596e73ea2 (patch)
tree01a1ba920dfc7c5470bc2743e3bbc92413e4dd97 /ghc/Main.hs
parentd930fecb6d241c1eb13c30cf1126132766ff602e (diff)
downloadhaskell-872a9444df4d38cd5dc0fbb7a249d89596e73ea2.tar.gz
Refactor NameCache
* Make NameCache the mutable one and replace NameCacheUpdater with it * Remove NameCache related code duplicated into haddock Bump haddock submodule
Diffstat (limited to 'ghc/Main.hs')
-rw-r--r--ghc/Main.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/ghc/Main.hs b/ghc/Main.hs
index e09242b5ad..1ea72d0b1c 100644
--- a/ghc/Main.hs
+++ b/ghc/Main.hs
@@ -244,7 +244,10 @@ main' postLoadMode dflags0 args flagWarnings = do
GHC.printException e
liftIO $ exitWith (ExitFailure 1)) $ do
case postLoadMode of
- ShowInterface f -> liftIO $ showIface hsc_env f
+ ShowInterface f -> liftIO $ showIface (hsc_dflags hsc_env)
+ (hsc_units hsc_env)
+ (hsc_NC hsc_env)
+ f
DoMake -> doMake srcs
DoMkDependHS -> doMkDependHS (map fst srcs)
StopBefore p -> liftIO (oneShot hsc_env p srcs)