summaryrefslogtreecommitdiffstats
path: root/opt.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-06-07 16:48:47 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-06-07 16:53:17 -0400
commit527d49a18979bc04992af5864034af57495a2f0b (patch)
treecc4d4a404bf0e0f5840f7cb217c8a2c8ad0fcf61 /opt.c
parent8896f35294649975c1df22a8b57db4333cc56091 (diff)
downloadbfs-527d49a18979bc04992af5864034af57495a2f0b.tar.xz
opt: Dump the command line before optimizing with -D opt
Diffstat (limited to 'opt.c')
-rw-r--r--opt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/opt.c b/opt.c
index e305588..14996f2 100644
--- a/opt.c
+++ b/opt.c
@@ -984,6 +984,8 @@ static struct expr *optimize_expr(struct opt_state *state, struct expr *expr) {
}
int optimize_cmdline(struct cmdline *cmdline) {
+ dump_cmdline(cmdline, DEBUG_OPT);
+
struct opt_facts facts_when_impure;
set_facts_impossible(&facts_when_impure);