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.
This commit is contained in:
parent
79e1273814
commit
6527262348
3
t-dll.cc
3
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
|
object, or creating the sigs_ array if this is the first
|
||||||
signal. */
|
signal. */
|
||||||
obj->scope_ = find_scope(des_, net->scope());
|
obj->scope_ = find_scope(des_, net->scope());
|
||||||
obj->file = perm_string::literal("N/A");
|
FILE_NAME(obj, net);
|
||||||
obj->lineno = 0;
|
|
||||||
assert(obj->scope_);
|
assert(obj->scope_);
|
||||||
|
|
||||||
if (obj->scope_->nsigs_ == 0) {
|
if (obj->scope_->nsigs_ == 0) {
|
||||||
|
|
|
||||||
6
t-dll.h
6
t-dll.h
|
|
@ -771,4 +771,10 @@ static inline void FILE_NAME(ivl_process_t net, const LineInfo*info)
|
||||||
net->lineno = info->get_lineno();
|
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
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue