Don't use unsafeGlobalDynFlags in optCoercion
This plumbs DynFlags through CoreOpt so optCoercion can finally eliminate its usage of `unsafeGlobalDynFlags`. Note that this doesn't completely eliminate `unsafeGlobalDynFlags` usage from this bit of the compiler. A few uses are introduced in call-sites where we don't (yet) have ready access to `DynFlags`. Test Plan: Validate Reviewers: goldfire Subscribers: rwbarton, thomie, carter Differential Revision: https://phabricator.haskell.org/D4774
Showing
- compiler/coreSyn/CoreOpt.hs 24 additions, 19 deletionscompiler/coreSyn/CoreOpt.hs
- compiler/coreSyn/CoreUnfold.hs 14 additions, 13 deletionscompiler/coreSyn/CoreUnfold.hs
- compiler/deSugar/Desugar.hs 3 additions, 3 deletionscompiler/deSugar/Desugar.hs
- compiler/deSugar/DsBinds.hs 2 additions, 2 deletionscompiler/deSugar/DsBinds.hs
- compiler/simplCore/Simplify.hs 3 additions, 2 deletionscompiler/simplCore/Simplify.hs
- compiler/specialise/Specialise.hs 1 addition, 1 deletioncompiler/specialise/Specialise.hs
- compiler/types/OptCoercion.hs 8 additions, 4 deletionscompiler/types/OptCoercion.hs
Loading
Please register or sign in to comment