Skip to content

Commit

Permalink
Fix brief dbprint of ParserState
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Dodd committed Aug 14, 2023
1 parent 9708a8e commit 9209776
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ir/dbprint-p4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ void IR::V1Parser::dbprint(std::ostream &out) const {
}
void IR::ParserException::dbprint(std::ostream &out) const { out << "IR::ParserException"; }
void IR::ParserState::dbprint(std::ostream &out) const {
out << "state " << name << " " << annotations << "{" << indent;
out << "state " << name;
if (dbgetflags(out) & Brief) return;
out << " " << annotations << "{" << indent;
for (auto s : components) out << Log::endl << s;
if (selectExpression) out << Log::endl << selectExpression;
out << " }" << unindent;
Expand Down

0 comments on commit 9209776

Please sign in to comment.