[commit: ghc] master: Get rid of more CPP in cmm/ and codeGen/ (0db0e46)

git at git.haskell.org git at git.haskell.org
Mon Mar 19 16:38:29 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/0db0e46c40a3a2af71f23033aa09a142d43b8538/ghc

>---------------------------------------------------------------

commit 0db0e46c40a3a2af71f23033aa09a142d43b8538
Author: Michal Terepeta <michal.terepeta at gmail.com>
Date:   Mon Mar 19 11:58:39 2018 -0400

    Get rid of more CPP in cmm/ and codeGen/
    
    This removes a bunch of unnecessary includes of `HsVersions.h` along
    with unnecessary CPP (e.g., due to checking for DEBUG which can be
    achieved by looking at `debugIsOn`)
    
    Signed-off-by: Michal Terepeta <michal.terepeta at gmail.com>
    
    Test Plan: ./validate
    
    Reviewers: bgamari, simonmar
    
    Reviewed By: bgamari
    
    Subscribers: rwbarton, thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D4462


>---------------------------------------------------------------

0db0e46c40a3a2af71f23033aa09a142d43b8538
 compiler/cmm/Cmm.hs               |  2 +-
 compiler/cmm/CmmExpr.hs           |  1 -
 compiler/cmm/MkGraph.hs           | 19 +++++++------------
 compiler/cmm/PprCmmDecl.hs        |  3 ---
 compiler/codeGen/CgUtils.hs       |  4 +---
 compiler/codeGen/StgCmmBind.hs    |  4 ----
 compiler/codeGen/StgCmmExpr.hs    |  7 ++++---
 compiler/codeGen/StgCmmForeign.hs |  4 ----
 compiler/codeGen/StgCmmHeap.hs    |  4 ----
 compiler/codeGen/StgCmmMonad.hs   | 13 +++++--------
 compiler/codeGen/StgCmmProf.hs    |  4 ----
 compiler/codeGen/StgCmmTicky.hs   |  4 +---
 12 files changed, 19 insertions(+), 50 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 0db0e46c40a3a2af71f23033aa09a142d43b8538


More information about the ghc-commits mailing list