mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 16:28:53 +02:00
astgen: generate type specific addNext, remove astNextNull
Generate type specific static overloads of Ast<Node>::addNext, which return the correct sub-type of the 'this' they were invoked on. Also remove AstNode::addNextNull, which is now only used in the parser, implement in verilog.y directly as a template function.
This commit is contained in:
+1
-1
@@ -134,7 +134,7 @@ private:
|
||||
incp->fileline(), new AstVarRef(incp->fileline(), varp, VAccess::WRITE),
|
||||
new AstAdd(incp->fileline(), new AstVarRef(incp->fileline(), varp, VAccess::READ),
|
||||
new AstConst(incp->fileline(), AstConst::WidthedValue(), 32, 1)));
|
||||
incp->addNext(assp);
|
||||
AstNode::addNext<AstNode, AstNode>(incp, assp);
|
||||
}
|
||||
return incp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user