Internals: Cleanup unused nodep in visitors. No functional change intended.

This commit is contained in:
Wilson Snyder
2020-04-04 08:31:14 -04:00
parent 38a31ae168
commit 19b472cf0b
59 changed files with 206 additions and 361 deletions
+5 -8
View File
@@ -69,9 +69,7 @@ private:
}
}
}
virtual void visit(AstNode* nodep) VL_OVERRIDE {
iterateChildren(nodep);
}
virtual void visit(AstNode* nodep) VL_OVERRIDE { iterateChildren(nodep); }
public:
// CONSTRUCTORS
@@ -359,7 +357,8 @@ private:
checkNode(nodep);
}
virtual void visit(AstConst* nodep) VL_OVERRIDE {
iterateChildren(nodep); checkNode(nodep);
iterateChildren(nodep);
checkNode(nodep);
}
virtual void visit(AstNodeCond* nodep) VL_OVERRIDE {
iterateChildren(nodep);
@@ -407,10 +406,8 @@ private:
//--------------------
// Default: Just iterate
virtual void visit(AstVar* nodep) VL_OVERRIDE {} // Don't hit varrefs under vars
virtual void visit(AstNode* nodep) VL_OVERRIDE {
iterateChildren(nodep);
}
virtual void visit(AstVar*) VL_OVERRIDE {} // Don't hit varrefs under vars
virtual void visit(AstNode* nodep) VL_OVERRIDE { iterateChildren(nodep); }
public:
// CONSTRUCTORS