Skip to content

Dynflags refactoring VI (#17957)

Sylvain Henry requested to merge hsyl20/ghc:hsyl20-dynflags-vi into master
  • Use Platform instead of DynFlags in GHC.Iface.Binary when possible
  • Remove DynFlags parameters from Outputable related stuff (mkUserStyle, etc.)
  • I took the opportunity to refactor logging action (LogAction, DumpAction) which took a unneeded PprStyle parameter.
  • Also removed PprDebug (as a PprStyle) complety. We have a simpler way to test if -dppr-debug is enabled and it avoids querying DynFlags to know if we need to substitute PprDebug to the selected PprStyle.
Edited by Sylvain Henry

Merge request reports