Internals: Favor NodeProcedure. No functional change intended.

This commit is contained in:
Wilson Snyder
2020-11-29 09:50:30 -05:00
parent a54ac52a35
commit aebb54444e
2 changed files with 3 additions and 15 deletions
+1 -10
View File
@@ -293,7 +293,7 @@ private:
}
m_scopep = nullptr;
}
virtual void visit(AstAlways* nodep) override {
virtual void visit(AstNodeProcedure* nodep) override {
AstNode* cmtp = new AstComment(nodep->fileline(), nodep->typeName(), true);
nodep->replaceWith(cmtp);
if (AstNode* stmtsp = nodep->bodysp()) {
@@ -328,15 +328,6 @@ private:
nodep->replaceWith(newp);
VL_DO_DANGLING(nodep->deleteTree(), nodep);
}
virtual void visit(AstInitial* nodep) override {
AstNode* cmtp = new AstComment(nodep->fileline(), nodep->typeName(), true);
nodep->replaceWith(cmtp);
if (AstNode* stmtsp = nodep->bodysp()) {
stmtsp->unlinkFrBackWithNext();
cmtp->addNextHere(stmtsp);
}
VL_DO_DANGLING(nodep->deleteTree(), nodep);
}
virtual void visit(AstCFunc* nodep) override {
iterateChildren(nodep);
// Link to global function