Disentangle DynFlags and SDoc (cf #10143)
Remove several uses of
The solution used here is to store the flags/options related to pretty-printing in the SDocContext (instead of using the DynFlags stored there, for now). See
DynFlags which initializes the
It doesn't fully fix #10143. The remaining uses of
sdocWithDynFlags are mostly CodeGen related (e.g. depend on target platform constants) and will be fixed separately.