From 9e95ae5859c5fb32c1a728b359cf30e1555a6be1 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 14 Jun 2016 18:16:08 +0200 Subject: [PATCH] vhdlpp: Moved Exp*::dump() methods from debug.cc to expression_debug.cc. --- vhdlpp/debug.cc | 23 ----------------------- vhdlpp/expression_debug.cc | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/vhdlpp/debug.cc b/vhdlpp/debug.cc index af4fd7a32..717687d68 100644 --- a/vhdlpp/debug.cc +++ b/vhdlpp/debug.cc @@ -436,29 +436,6 @@ void ExpRelation::dump(ostream&out, int indent) const 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 { out << setw(indent) << "" << name_ << "=>"; diff --git a/vhdlpp/expression_debug.cc b/vhdlpp/expression_debug.cc index feaaf9510..f745f128d 100644 --- a/vhdlpp/expression_debug.cc +++ b/vhdlpp/expression_debug.cc @@ -119,6 +119,29 @@ void ExpShift::dump(ostream&out, int indent) const 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 { out << setw(indent) << "" << "Time ";