From cedbdb63fa92d2045ce577dfcdbab1b205870cac Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 18 Nov 2008 17:22:06 -0800 Subject: [PATCH] VHDL make comment for temporaries unique. Make the comment for local signals (temporaries) unique from normal signals. --- tgt-vhdl/scope.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tgt-vhdl/scope.cc b/tgt-vhdl/scope.cc index 5b15d6074..98426bc36 100644 --- a/tgt-vhdl/scope.cc +++ b/tgt-vhdl/scope.cc @@ -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);