mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 08:24:31 +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:
+2
-2
@@ -710,8 +710,8 @@ class CoverageVisitor final : public VNVisitor {
|
||||
UINFO(4, " STOP: " << nodep);
|
||||
m_state.m_on = false;
|
||||
}
|
||||
void visit(AstPragma* nodep) override {
|
||||
if (nodep->pragType() == VPragmaType::COVERAGE_BLOCK_OFF) {
|
||||
void visit(AstStmtPragma* nodep) override {
|
||||
if (nodep->pragp()->pragType() == VPragmaType::COVERAGE_BLOCK_OFF) {
|
||||
// Skip all NEXT nodes under this block, and skip this if/case branch
|
||||
UINFO(4, " OFF: h" << m_state.m_handle << " " << nodep);
|
||||
m_state.m_on = false;
|
||||
|
||||
Reference in New Issue
Block a user