diff --git a/t-dll.cc b/t-dll.cc index 06cd40220..e11692145 100644 --- a/t-dll.cc +++ b/t-dll.cc @@ -2374,8 +2374,7 @@ void dll_target::signal(const NetNet*net) object, or creating the sigs_ array if this is the first signal. */ obj->scope_ = find_scope(des_, net->scope()); - obj->file = perm_string::literal("N/A"); - obj->lineno = 0; + FILE_NAME(obj, net); assert(obj->scope_); if (obj->scope_->nsigs_ == 0) { diff --git a/t-dll.h b/t-dll.h index 3bb1b9279..c409a6ce9 100644 --- a/t-dll.h +++ b/t-dll.h @@ -771,4 +771,10 @@ static inline void FILE_NAME(ivl_process_t net, const LineInfo*info) net->lineno = info->get_lineno(); } +static inline void FILE_NAME(ivl_signal_t net, const LineInfo*info) +{ + net->file = info->get_file(); + net->lineno = info->get_lineno(); +} + #endif