Internal speedups: Skip iterator for Termop or VarRefs.

Fix AstUCFunc being mis-labeled as a Termop.
This commit is contained in:
Wilson Snyder
2008-11-22 15:28:29 -05:00
parent c595d67311
commit a242c1019d
4 changed files with 12 additions and 3 deletions
+2
View File
@@ -246,6 +246,8 @@ private:
nodep->iterateChildren(*this); checkNode(nodep); }
virtual void visit(AstNodeBiop* nodep, AstNUser*) {
nodep->iterateChildren(*this); checkNode(nodep); }
virtual void visit(AstUCFunc* nodep, AstNUser*) {
nodep->iterateChildren(*this); checkNode(nodep); }
virtual void visit(AstSel* nodep, AstNUser*) {
nodep->fromp()->iterateAndNext(*this);
{ // Only the 'from' is part of the assignment LHS