aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/simulate
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-10-11 06:19:19 +0200
committerTristan Gingold <tgingold@free.fr>2016-10-11 06:19:19 +0200
commitec63ed6f4287ef5a0a19817f3803972899cf7648 (patch)
treebe459880175235d631ac0f5249440d63cfc7a3de /src/vhdl/simulate
parent498665c5328fa2c2e0a0d114e39c545d04fbdfe9 (diff)
downloadghdl-ec63ed6f4287ef5a0a19817f3803972899cf7648.tar.gz
ghdl-ec63ed6f4287ef5a0a19817f3803972899cf7648.tar.bz2
ghdl-ec63ed6f4287ef5a0a19817f3803972899cf7648.zip
Rework AST to setup ownership and reference policy.
Check it with nodes_gc.
Diffstat (limited to 'src/vhdl/simulate')
-rw-r--r--src/vhdl/simulate/annotations.adb3
-rw-r--r--src/vhdl/simulate/elaboration.adb3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/vhdl/simulate/annotations.adb b/src/vhdl/simulate/annotations.adb
index 4b6270afd..4758b5bed 100644
--- a/src/vhdl/simulate/annotations.adb
+++ b/src/vhdl/simulate/annotations.adb
@@ -1078,8 +1078,7 @@ package body Annotations is
if Get_Kind (Decl) = Iir_Kind_Package_Instantiation_Declaration then
declare
- Uninst : constant Iir :=
- Get_Named_Entity (Get_Uninstantiated_Package_Name (Decl));
+ Uninst : constant Iir := Get_Uninstantiated_Package_Decl (Decl);
Uninst_Info : constant Sim_Info_Acc := Get_Info (Uninst);
begin
-- There is not corresponding body for an instantiation, so
diff --git a/src/vhdl/simulate/elaboration.adb b/src/vhdl/simulate/elaboration.adb
index 7ca7063cf..bc3fe1896 100644
--- a/src/vhdl/simulate/elaboration.adb
+++ b/src/vhdl/simulate/elaboration.adb
@@ -390,8 +390,7 @@ package body Elaboration is
if Get_Kind (Decl) = Iir_Kind_Package_Instantiation_Declaration then
-- Elaborate the body now.
declare
- Uninst : constant Iir :=
- Get_Named_Entity (Get_Uninstantiated_Package_Name (Decl));
+ Uninst : constant Iir := Get_Uninstantiated_Package_Decl (Decl);
begin
Elaborate_Declarative_Part
(Instance, Get_Declaration_Chain (Get_Package_Body (Uninst)));