Skip to content

Replace Opt_SccProfilingOn flag with sccProfilingEnabled helper function

Sylvain Henry requested to merge hsyl20/ghc:hsyl20/dynflags/scc into master

SCC profiling was enabled in a convoluted way: if WayProf was enabled, Opt_SccProfilingOn general flag was set (in GHC.Driver.Ways.wayGeneralFlags), and then this flag was queried in various places.

There is no need to go via general flags, so this patch defines a sccProfilingEnabled :: DynFlags -> Bool helper function that just checks whether WayProf is enabled.

Merge request reports