Internals: Use UINFOTREE istead of dumpTree

This commit is contained in:
Wilson Snyder
2025-08-02 13:44:40 -04:00
parent 7bb790f7e4
commit dca504c706
34 changed files with 214 additions and 211 deletions
+2 -2
View File
@@ -284,12 +284,12 @@ class SubstVisitor final : public VNVisitor {
if (!hit) iterate(nodep->lhsp());
}
void replaceSubstEtc(AstNode* nodep, AstNodeExpr* substp) {
if (debug() > 5) nodep->dumpTree("- substw_old: ");
UINFOTREE(6, nodep, "", "substw_old");
AstNodeExpr* newp = substp->cloneTreePure(true);
if (!nodep->isQuad() && newp->isQuad()) {
newp = new AstCCast{newp->fileline(), newp, nodep};
}
if (debug() > 5) newp->dumpTree("- w_new: ");
UINFOTREE(6, newp, "", "w_new");
nodep->replaceWith(newp);
VL_DO_DANGLING(nodep->deleteTree(), nodep);
++m_statSubsts;