diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-01-11 07:55:00 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-11 07:55:00 -0800 |
commit | d2df2a8fef8d01b70fa5faa4397e1d628b9ceb5b (patch) | |
tree | b2a9e682a3d387e4258bfba6c3b394a2d1a453d2 /kernel/yosys.cc | |
parent | ed491939c269f5acb9d53109744870251b50e095 (diff) | |
parent | cd92a974f4cf8d4db74d504c38e51ce043e02403 (diff) | |
download | yosys-d2df2a8fef8d01b70fa5faa4397e1d628b9ceb5b.tar.gz yosys-d2df2a8fef8d01b70fa5faa4397e1d628b9ceb5b.tar.bz2 yosys-d2df2a8fef8d01b70fa5faa4397e1d628b9ceb5b.zip |
Merge pull request #1622 from YosysHQ/clifford/onpassreg
Add Pass::on_register() and Pass::on_shutdown()
Diffstat (limited to 'kernel/yosys.cc')
-rw-r--r-- | kernel/yosys.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc index 5018a4888..8190d8902 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -544,6 +544,8 @@ void yosys_shutdown() already_shutdown = true; log_pop(); + Pass::done_register(); + delete yosys_design; yosys_design = NULL; @@ -553,7 +555,6 @@ void yosys_shutdown() log_errfile = NULL; log_files.clear(); - Pass::done_register(); yosys_celltypes.clear(); #ifdef YOSYS_ENABLE_TCL |