summaryrefslogtreecommitdiff
path: root/compiler/GHC/Driver/Flags.hs
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-08-19 17:30:08 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-08-21 09:37:15 -0400
commit2d8ca9170328249a436c3b5647b8e548d32b11c8 (patch)
tree63b52b62234dfaf35252c4cdbeccd41c4bac7956 /compiler/GHC/Driver/Flags.hs
parent659eb31b7a40f0aa2ba43c3454b5d9006fde837d (diff)
downloadhaskell-2d8ca9170328249a436c3b5647b8e548d32b11c8.tar.gz
Fix -ddump-stg flag
-ddump-stg was dumping the initial STG (just after Core-to-STG pass) which was misleading because we want the final STG to know if a function allocates or not. Now we have a new flag -ddump-stg-from-core for this and -ddump-stg is deprecated.
Diffstat (limited to 'compiler/GHC/Driver/Flags.hs')
-rw-r--r--compiler/GHC/Driver/Flags.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/GHC/Driver/Flags.hs b/compiler/GHC/Driver/Flags.hs
index a1691c1397..9f9e9edbab 100644
--- a/compiler/GHC/Driver/Flags.hs
+++ b/compiler/GHC/Driver/Flags.hs
@@ -68,9 +68,9 @@ data DumpFlag
| Opt_D_dump_simpl_iterations
| Opt_D_dump_spec
| Opt_D_dump_prep
- | Opt_D_dump_stg -- CoreToStg output
- | Opt_D_dump_stg_unarised -- STG after unarise
- | Opt_D_dump_stg_final -- STG after stg2stg
+ | Opt_D_dump_stg_from_core -- ^ Initial STG (CoreToStg output)
+ | Opt_D_dump_stg_unarised -- ^ STG after unarise
+ | Opt_D_dump_stg_final -- ^ Final STG (after stg2stg)
| Opt_D_dump_call_arity
| Opt_D_dump_exitify
| Opt_D_dump_stranal