From 5bf55485d5f16c4201067d26113eba1adf637cbc Mon Sep 17 00:00:00 2001 From: Cary R Date: Fri, 5 Sep 2008 14:44:02 -0700 Subject: [PATCH] Pass file and line number information for expression constants. This patch passes the file and line number information for constants that are used in expressions. --- t-dll-expr.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t-dll-expr.cc b/t-dll-expr.cc index cbba20ded..3dbb8d6c9 100644 --- a/t-dll-expr.cc +++ b/t-dll-expr.cc @@ -219,6 +219,7 @@ void dll_target::expr_const(const NetEConst*net) expr_ = (ivl_expr_t)calloc(1, sizeof(struct ivl_expr_s)); assert(expr_); expr_->value_= net->expr_type(); + FILE_NAME(expr_, net); if (net->value().is_string()) { expr_->type_ = IVL_EX_STRING; @@ -276,6 +277,7 @@ void dll_target::expr_creal(const NetECReal*net) expr_->width_ = net->expr_width(); expr_->signed_ = 1; expr_->type_ = IVL_EX_REALNUM; + FILE_NAME(expr_, net); expr_->value_= IVL_VT_REAL; expr_->u_.real_.value = net->value().as_double(); }