mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-10 09:15:49 +00:00
fixup! fixup! fixup! ast: add GC for dev debugging
This commit is contained in:
parent
6d8cb33512
commit
a5458d21ef
1 changed files with 4 additions and 4 deletions
|
@ -290,8 +290,8 @@ void AstNode::delete_children()
|
||||||
for (auto &it : children)
|
for (auto &it : children)
|
||||||
if (Tagger::get().nodes.count(it))
|
if (Tagger::get().nodes.count(it))
|
||||||
delete it;
|
delete it;
|
||||||
else
|
// else
|
||||||
log("skip child %p\n", it);
|
// log("skip child %p\n", it);
|
||||||
#else
|
#else
|
||||||
for (auto &it : children)
|
for (auto &it : children)
|
||||||
delete it;
|
delete it;
|
||||||
|
@ -302,8 +302,8 @@ void AstNode::delete_children()
|
||||||
for (auto &it : attributes)
|
for (auto &it : attributes)
|
||||||
if (Tagger::get().nodes.count(it.second))
|
if (Tagger::get().nodes.count(it.second))
|
||||||
delete it.second;
|
delete it.second;
|
||||||
else
|
// else
|
||||||
log("skip attr %p\n", it.second);
|
// log("skip attr %p\n", it.second);
|
||||||
#else
|
#else
|
||||||
for (auto &it : attributes)
|
for (auto &it : attributes)
|
||||||
delete it.second;
|
delete it.second;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue