diff --git a/src/V3AstNodes.cpp b/src/V3AstNodes.cpp index 08bcbd234..fc6999853 100644 --- a/src/V3AstNodes.cpp +++ b/src/V3AstNodes.cpp @@ -1854,6 +1854,10 @@ void AstFork::dump(std::ostream& str) const { this->AstNode::dump(str); if (!joinType().join()) str << " [" << joinType() << "]"; } +void AstTraceDecl::dump(std::ostream& str) const { + this->AstNodeStmt::dump(str); + if (code()) str << " [code=" << code() << "]"; +} void AstTraceInc::dump(std::ostream& str) const { this->AstNodeStmt::dump(str); str << " -> "; diff --git a/src/V3AstNodes.h b/src/V3AstNodes.h index e4ba5a4c0..e1397b810 100644 --- a/src/V3AstNodes.h +++ b/src/V3AstNodes.h @@ -5330,6 +5330,7 @@ public: dtypeFrom(valuep); addNOp1p(valuep); } + virtual void dump(std::ostream& str) const override; virtual int instrCount() const override { return 100; } // Large... ASTNODE_NODE_FUNCS(TraceDecl) virtual string name() const override { return m_showname; }