driver: move IdString collection to yosys_shutdown
This commit is contained in:
@@ -158,7 +158,6 @@ extern "C" {
|
||||
|
||||
void yosys_atexit()
|
||||
{
|
||||
RTLIL::OwningIdString::collect_garbage(false);
|
||||
#if defined(YOSYS_ENABLE_READLINE) || defined(YOSYS_ENABLE_EDITLINE)
|
||||
if (!yosys_history_file.empty()) {
|
||||
#if defined(YOSYS_ENABLE_READLINE)
|
||||
|
||||
@@ -260,6 +260,7 @@ void yosys_shutdown()
|
||||
|
||||
delete yosys_design;
|
||||
yosys_design = NULL;
|
||||
RTLIL::OwningIdString::collect_garbage();
|
||||
|
||||
for (auto f : log_files)
|
||||
if (f != stderr)
|
||||
|
||||
Reference in New Issue
Block a user