From a60216ec15cf9117713913596332cbcc0f696e38 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sat, 2 Aug 2008 10:44:03 +0100 Subject: [PATCH] Use ivl_process_* functions for file/line number information --- tgt-vhdl/process.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tgt-vhdl/process.cc b/tgt-vhdl/process.cc index 2e1517eef..cc2d9b649 100644 --- a/tgt-vhdl/process.cc +++ b/tgt-vhdl/process.cc @@ -69,8 +69,8 @@ static int generate_vhdl_process(vhdl_entity *ent, ivl_process_t proc) std::ostringstream ss; ss << "Generated from " << type << " process in " << ivl_scope_tname(scope) << " (" - << ivl_scope_file(scope) << ":" - << ivl_scope_lineno(scope) << ")"; + << ivl_process_file(proc) << ":" + << ivl_process_lineno(proc) << ")"; vhdl_proc->set_comment(ss.str()); set_active_entity(NULL);