From 65272623486c259632d90e8310aa3f61edc199cf Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Fri, 8 Aug 2008 20:35:27 +0100 Subject: [PATCH] Add correct file/line information to signals This patch adds a FILE_NAME function for signals to extract the file/line information from the net's LineInfo, replacing the dummy values. --- t-dll.cc | 3 +-- t-dll.h | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) 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