From 885d2e04854f038fbb899ab545df2b57d9b8bba4 Mon Sep 17 00:00:00 2001 From: "klebinger.andreas@gmx.at" Date: Fri, 5 Apr 2019 17:02:59 +0200 Subject: Add -ddump-stg-final to dump stg as it is used for codegen. Intermediate STG does not contain free variables which can be useful sometimes. So adding a flag to dump that info. --- compiler/main/DynFlags.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler/main/DynFlags.hs') diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index ced0be5506..dc12879776 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -384,6 +384,7 @@ data DumpFlag | Opt_D_dump_spec | Opt_D_dump_prep | Opt_D_dump_stg + | Opt_D_dump_stg_final | Opt_D_dump_call_arity | Opt_D_dump_exitify | Opt_D_dump_stranal @@ -3339,6 +3340,8 @@ dynamic_flags_deps = [ (setDumpFlag Opt_D_dump_prep) , make_ord_flag defGhcFlag "ddump-stg" (setDumpFlag Opt_D_dump_stg) + , make_ord_flag defGhcFlag "ddump-stg-final" + (setDumpFlag Opt_D_dump_stg_final) , make_ord_flag defGhcFlag "ddump-call-arity" (setDumpFlag Opt_D_dump_call_arity) , make_ord_flag defGhcFlag "ddump-exitify" -- cgit v1.2.1