Skip to content

Commit

Permalink
VHDL make comment for temporaries unique.
Browse files Browse the repository at this point in the history
Make the comment for local signals (temporaries) unique from
normal signals.
  • Loading branch information
caryr authored and steveicarus committed Nov 19, 2008
1 parent 3c4b969 commit cedbdb6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tgt-vhdl/scope.cc
Expand Up @@ -366,8 +366,13 @@ static void declare_signals(vhdl_entity *ent, ivl_scope_t scope)
vhdl_decl *decl = new vhdl_signal_decl(name.c_str(), sig_type);

ostringstream ss;
ss << "Declared at " << ivl_signal_file(sig) << ":"
<< ivl_signal_lineno(sig);
if (ivl_signal_local(sig)) {
ss << "Temporary created at " << ivl_signal_file(sig) << ":"
<< ivl_signal_lineno(sig);
} else {
ss << "Declared at " << ivl_signal_file(sig) << ":"
<< ivl_signal_lineno(sig);
}
decl->set_comment(ss.str().c_str());

ent->get_arch()->get_scope()->add_decl(decl);
Expand Down

0 comments on commit cedbdb6

Please sign in to comment.