[GHC] #10143: Separate PprFlags (used by Outputable) from DynFlags

GHC ghc-devs at haskell.org
Tue May 17 11:34:22 UTC 2016


#10143: Separate PprFlags (used by Outputable) from DynFlags
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:  ezyang
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.11
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #10961            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by dalaing):

 I've been having a go at this, and I'm up to the code gen part.

 It looks like there's a decent amount of the Cmm code that takes a
 `DynFlags` argument in order to get access to `PlatformConstants`.

 The `PprFlags` change might be easier if these functions took
 `PlatformConstants` as an argument (which would then become part of the
 `PprFlags` structure).

 Does anyone have thoughts on whether I should just go ahead and do this?
 Or should I make `CmmFlags` and `cmmFlags :: DynFlags -> CmmFlags` in
 order to wrap it nicely?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10143#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list