Internals: Dump TraceDecl codes.

This commit is contained in:
Wilson Snyder 2022-04-10 19:40:27 -04:00
parent f5f4e15ce2
commit 5f333be947
2 changed files with 5 additions and 0 deletions

View File

@ -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 << " -> ";

View File

@ -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; }