mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 18:42:58 +02:00
Add AstNode::foreach method for simple pre-order traversal (#3276)
This commit is contained in:
+1
-3
@@ -82,7 +82,6 @@
|
||||
#include "V3Ast.h"
|
||||
#include "V3AstUserAllocator.h"
|
||||
#include "V3Const.h"
|
||||
#include "V3EmitCBase.h"
|
||||
#include "V3EmitV.h"
|
||||
#include "V3File.h"
|
||||
#include "V3Global.h"
|
||||
@@ -1831,8 +1830,7 @@ AstActive* OrderProcess::processMoveOneLogic(const OrderLogicVertex* lvertexp,
|
||||
newFuncpr->addStmtsp(nodep);
|
||||
if (v3Global.opt.outputSplitCFuncs()) {
|
||||
// Add in the number of nodes we're adding
|
||||
const EmitCBaseCounterVisitor visitor{nodep};
|
||||
newStmtsr += visitor.count();
|
||||
newStmtsr += nodep->nodeCount();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user