From 657ac8168ecbfda5419431f2ce2f27044584ba08 Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 17 Jun 2005 05:06:47 +0000 Subject: [PATCH] Debug messages. --- elaborate.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/elaborate.cc b/elaborate.cc index 59a895821..1205669b2 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: elaborate.cc,v 1.324 2005/05/24 01:44:27 steve Exp $" +#ident "$Id: elaborate.cc,v 1.325 2005/06/17 05:06:47 steve Exp $" #endif # include "config.h" @@ -1611,6 +1611,11 @@ NetProc* PCondit::elaborate(Design*des, NetScope*scope) const // else_ statement, the use an empty block as a noop. if (NetEConst*ce = dynamic_cast(expr)) { verinum val = ce->value(); + if (debug_elaborate) { + cerr << get_line() << ": debug: Condition expression " + << "is a constant " << val << "." << endl; + } + delete expr; if (val[0] == verinum::V1) return if_->elaborate(des, scope); @@ -2971,6 +2976,9 @@ Design* elaborate(listroots) /* * $Log: elaborate.cc,v $ + * Revision 1.325 2005/06/17 05:06:47 steve + * Debug messages. + * * Revision 1.324 2005/05/24 01:44:27 steve * Do sign extension of structuran nets. *