mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Add AstStmtPragma (#6280)
Trivial adaptor node to put AstPragma in AstNodeStmt position, which will be required in various places. Also fix dumping of AstPragma.
This commit is contained in:
+3
-3
@@ -267,11 +267,11 @@ class LinkJumpVisitor final : public VNVisitor {
|
||||
}
|
||||
m_blockStack.pop_back();
|
||||
}
|
||||
void visit(AstPragma* nodep) override {
|
||||
if (nodep->pragType() == VPragmaType::UNROLL_DISABLE) {
|
||||
void visit(AstStmtPragma* nodep) override {
|
||||
if (nodep->pragp()->pragType() == VPragmaType::UNROLL_DISABLE) {
|
||||
m_unrollFull = VOptionBool::OPT_FALSE;
|
||||
VL_DO_DANGLING(pushDeletep(nodep->unlinkFrBack()), nodep);
|
||||
} else if (nodep->pragType() == VPragmaType::UNROLL_FULL) {
|
||||
} else if (nodep->pragp()->pragType() == VPragmaType::UNROLL_FULL) {
|
||||
m_unrollFull = VOptionBool::OPT_TRUE;
|
||||
VL_DO_DANGLING(pushDeletep(nodep->unlinkFrBack()), nodep);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user