vhdlpp: Moved Exp*::dump() methods from debug.cc to expression_debug.cc.
This commit is contained in:
parent
d44c814bab
commit
9e95ae5859
|
|
@ -436,29 +436,6 @@ void ExpRelation::dump(ostream&out, int indent) const
|
||||||
dump_operands(out, indent+4);
|
dump_operands(out, indent+4);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ExpString::dump(ostream&out, int indent) const
|
|
||||||
{
|
|
||||||
out << setw(indent) << "" << "String \"" << value_;
|
|
||||||
out << "\"" << " at " << get_fileline() << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExpUAbs::dump(ostream&out, int indent) const
|
|
||||||
{
|
|
||||||
out << setw(indent) << "" << "abs() at " << get_fileline() << endl;
|
|
||||||
dump_operand1(out, indent+4);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExpUnary::dump_operand1(ostream&out, int indent) const
|
|
||||||
{
|
|
||||||
operand1_->dump(out, indent);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExpUNot::dump(ostream&out, int indent) const
|
|
||||||
{
|
|
||||||
out << setw(indent) << "" << "not() at " << get_fileline() << endl;
|
|
||||||
dump_operand1(out, indent+4);
|
|
||||||
}
|
|
||||||
|
|
||||||
void named_expr_t::dump(ostream&out, int indent) const
|
void named_expr_t::dump(ostream&out, int indent) const
|
||||||
{
|
{
|
||||||
out << setw(indent) << "" << name_ << "=>";
|
out << setw(indent) << "" << name_ << "=>";
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,29 @@ void ExpShift::dump(ostream&out, int indent) const
|
||||||
dump_operands(out, indent+4);
|
dump_operands(out, indent+4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ExpString::dump(ostream&out, int indent) const
|
||||||
|
{
|
||||||
|
out << setw(indent) << "" << "String \"" << value_;
|
||||||
|
out << "\"" << " at " << get_fileline() << endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExpUAbs::dump(ostream&out, int indent) const
|
||||||
|
{
|
||||||
|
out << setw(indent) << "" << "abs() at " << get_fileline() << endl;
|
||||||
|
dump_operand1(out, indent+4);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExpUnary::dump_operand1(ostream&out, int indent) const
|
||||||
|
{
|
||||||
|
operand1_->dump(out, indent);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExpUNot::dump(ostream&out, int indent) const
|
||||||
|
{
|
||||||
|
out << setw(indent) << "" << "not() at " << get_fileline() << endl;
|
||||||
|
dump_operand1(out, indent+4);
|
||||||
|
}
|
||||||
|
|
||||||
void ExpTime::dump(ostream&out, int indent) const
|
void ExpTime::dump(ostream&out, int indent) const
|
||||||
{
|
{
|
||||||
out << setw(indent) << "" << "Time ";
|
out << setw(indent) << "" << "Time ";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue