mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Use UINFOTREE istead of dumpTree
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user