VHDL make comment for temporaries unique.

Make the comment for local signals (temporaries) unique from
normal signals.
This commit is contained in:
Cary R 2008-11-18 17:22:06 -08:00 committed by Stephen Williams
parent 3c4b9692a6
commit cedbdb63fa
1 changed files with 7 additions and 2 deletions

View File

@ -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;
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);