mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: Refactor generate construct Ast handling (#6280) We introduce AstNodeGen, the common base class of AstGenBlock, AstGenCase, AstGenFor, and AstGenIf, which together represent all SV generate constructs. Subsequently remove AstNodeFor, AstNodeCase (AstCase is now directly derived from AstNodeStmt) and adjust internals to work on the new representation. Output is identical modulo hashes do to changed AstNode type ids, no functional change intended. Step towards #6280.
This commit is contained in:
+1
-1
@@ -1029,7 +1029,7 @@ class TimingControlVisitor final : public VNVisitor {
|
||||
}
|
||||
controlp->replaceWith(forkp);
|
||||
AstBegin* beginp = VN_CAST(controlp, Begin);
|
||||
if (!beginp) beginp = new AstBegin{nodep->fileline(), "", controlp, false, false};
|
||||
if (!beginp) beginp = new AstBegin{nodep->fileline(), "", controlp, false};
|
||||
forkp->addStmtsp(beginp);
|
||||
controlp = forkp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user