Wolfgang Jeltsch pushed to branch wip/jeltsch/module-graph-reuse-in-downsweep at Glasgow Haskell Compiler / GHC

Commits:

3 changed files:

Changes:

  • testsuite/tests/ghc-api/downsweep/OldModLocation.hs
    ... ... @@ -48,13 +48,13 @@ main = do
    48 48
     
    
    49 49
         liftIO $ do
    
    50 50
     
    
    51
    -    _emss <- downsweep hsc_env mkUnknownDiagnostic Nothing [] [] False
    
    51
    +    _emss <- downsweep hsc_env mkUnknownDiagnostic Nothing [] Nothing [] False
    
    52 52
     
    
    53 53
         flushFinderCaches (hsc_FC hsc_env) (hsc_unit_env hsc_env)
    
    54 54
         createDirectoryIfMissing False "mydir"
    
    55 55
         renameFile "B.hs" "mydir/B.hs"
    
    56 56
     
    
    57
    -    (_, nodes) <- downsweep hsc_env mkUnknownDiagnostic Nothing [] [] False
    
    57
    +    (_, nodes) <- downsweep hsc_env mkUnknownDiagnostic Nothing [] Nothing [] False
    
    58 58
     
    
    59 59
         -- If 'checkSummaryTimestamp' were to call 'addHomeModuleToFinder' with
    
    60 60
         -- (ms_location old_summary) like summariseFile used to instead of
    

  • testsuite/tests/ghc-api/downsweep/PartialDownsweep.hs
    ... ... @@ -169,7 +169,7 @@ go label mods cnd =
    169 169
         setTargets [tgt]
    
    170 170
     
    
    171 171
         hsc_env <- getSession
    
    172
    -    (_, nodes) <- liftIO $ downsweep hsc_env mkUnknownDiagnostic Nothing [] [] False
    
    172
    +    (_, nodes) <- liftIO $ downsweep hsc_env mkUnknownDiagnostic Nothing [] Nothing [] False
    
    173 173
     
    
    174 174
         it label $ cnd (mgModSummaries nodes)
    
    175 175
     
    

  • testsuite/tests/ghc-api/fixed-nodes/InterfaceModuleGraph.hs
    ... ... @@ -67,7 +67,7 @@ main = do
    67 67
               keyC = msKey msC
    
    68 68
     
    
    69 69
           let mkGraph s = do
    
    70
    -            ([], nodes) <- downsweepFromRootNodes hsc_env mempty [] True DownsweepUseFixed s []
    
    70
    +            ([], nodes) <- downsweepFromRootNodes hsc_env mempty Nothing [] True DownsweepUseFixed s []
    
    71 71
                 return $ mkModuleGraph nodes
    
    72 72
     
    
    73 73
           graph <- liftIO $ mkGraph [ModuleNodeCompile msC]