From 8f2e5732b0eec2d99b821a7f622aee8b2c00739a Mon Sep 17 00:00:00 2001 From: Takenobu Tani Date: Fri, 29 May 2020 18:48:51 +0900 Subject: Modify file paths to module paths for new module hierarchy This updates comments only. This patch replaces module references according to new module hierarchy [1][2]. For files under the `compiler/` directory, I replace them as module paths instead of file paths. For instance, `GHC.Unit.State` instead of `compiler/GHC/Unit/State.hs` [3]. For current and future haddock's markup, this patch encloses the module name with "" [4]. [1]: https://gitlab.haskell.org/ghc/ghc/-/wikis/Make-GHC-codebase-more-modular [2]: https://gitlab.haskell.org/ghc/ghc/issues/13009 [3]: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3375#note_276613 [4]: https://haskell-haddock.readthedocs.io/en/latest/markup.html#linking-to-modules --- compiler/GHC/StgToCmm/Expr.hs | 2 +- compiler/GHC/StgToCmm/Utils.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/GHC/StgToCmm') diff --git a/compiler/GHC/StgToCmm/Expr.hs b/compiler/GHC/StgToCmm/Expr.hs index 3605b96149..164348895d 100644 --- a/compiler/GHC/StgToCmm/Expr.hs +++ b/compiler/GHC/StgToCmm/Expr.hs @@ -902,7 +902,7 @@ cgIdApp fun_id args = do -- -- Self-recursive tail calls can be optimized into a local jump in the same -- way as let-no-escape bindings (see Note [What is a non-escaping let] in --- GHC/CoreToStg.hs). Consider this: +-- "GHC.CoreToStg"). Consider this: -- -- foo.info: -- a = R1 // calling convention diff --git a/compiler/GHC/StgToCmm/Utils.hs b/compiler/GHC/StgToCmm/Utils.hs index 3fb18f0ea8..3815c2b698 100644 --- a/compiler/GHC/StgToCmm/Utils.hs +++ b/compiler/GHC/StgToCmm/Utils.hs @@ -241,7 +241,7 @@ emitRtsCallGen res lbl args safe -- here, as we don't have liveness information. And really, we -- shouldn't be doing the workaround at this point in the pipeline, see -- Note [Register parameter passing] and the ToDo on CmmCall in --- GHC/Cmm/Node.hs. Right now the workaround is to avoid inlining across +-- "GHC.Cmm.Node". Right now the workaround is to avoid inlining across -- unsafe foreign calls in rewriteAssignments, but this is strictly -- temporary. callerSaveVolatileRegs :: DynFlags -> (CmmAGraph, CmmAGraph) -- cgit v1.2.1