3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-05-10 17:25:49 +00:00

fixup! fixup! fixup! ast: add GC for dev debugging

This commit is contained in:
Emil J. Tywoniak 2025-04-25 11:10:16 +02:00
parent 6d8cb33512
commit a5458d21ef

View file

@ -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;