mirror of
https://github.com/verilator/verilator.git
synced 2026-09-07 10:01:11 +02:00
Internals: Use UINFOTREE istead of dumpTree
This commit is contained in:
@@ -190,8 +190,8 @@ class LinkResolveVisitor final : public VNVisitor {
|
||||
if (VN_IS(nodep->backp(), StmtExpr)) {
|
||||
nodep->v3error("Expected statement, not let substitution " << letp->prettyNameQ());
|
||||
}
|
||||
// if (debug()) letp->dumpTree("-let-let ");
|
||||
// if (debug()) nodep->dumpTree("-let-ref ");
|
||||
// UINFOTREE(1, letp, "", "let-let");
|
||||
// UINFOTREE(1, nodep, "", "let-ref");
|
||||
AstStmtExpr* const letStmtp = VN_AS(letp->stmtsp(), StmtExpr);
|
||||
AstNodeExpr* const newp = letStmtp->exprp()->cloneTree(false);
|
||||
const V3TaskConnects tconnects = V3Task::taskConnects(nodep, letp->stmtsp());
|
||||
@@ -214,7 +214,7 @@ class LinkResolveVisitor final : public VNVisitor {
|
||||
VL_DO_DANGLING(pushDeletep(refp), refp);
|
||||
}
|
||||
});
|
||||
// if (debug()) newp->dumpTree("-let-new ");
|
||||
// UINFOTREE(1, newp, "", "let-new");
|
||||
nodep->replaceWith(newp);
|
||||
VL_DO_DANGLING(pushDeletep(nodep), nodep);
|
||||
// Iterate to expand further now, so we can look for recursions
|
||||
|
||||
Reference in New Issue
Block a user