Get rid of more CPP in cmm/ and codeGen/
authorMichal Terepeta <michal.terepeta@gmail.com>
Mon, 19 Mar 2018 15:58:39 +0000 (11:58 -0400)
committerBen Gamari <ben@smart-cactus.org>
Mon, 19 Mar 2018 16:05:11 +0000 (12:05 -0400)
commit0db0e46c40a3a2af71f23033aa09a142d43b8538
treee776bcd5c984bf0f267e471fd625aa32cf8e8c1c
parentfad822e2a5aa4373c3aa64e913e51fd5509c3f67
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@gmail.com>
Test Plan: ./validate

Reviewers: bgamari, simonmar

Reviewed By: bgamari

Subscribers: rwbarton, thomie, carter

Differential Revision: https://phabricator.haskell.org/D4462
12 files changed:
compiler/cmm/Cmm.hs
compiler/cmm/CmmExpr.hs
compiler/cmm/MkGraph.hs
compiler/cmm/PprCmmDecl.hs
compiler/codeGen/CgUtils.hs
compiler/codeGen/StgCmmBind.hs
compiler/codeGen/StgCmmExpr.hs
compiler/codeGen/StgCmmForeign.hs
compiler/codeGen/StgCmmHeap.hs
compiler/codeGen/StgCmmMonad.hs
compiler/codeGen/StgCmmProf.hs
compiler/codeGen/StgCmmTicky.hs