From ec63ed6f4287ef5a0a19817f3803972899cf7648 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 11 Oct 2016 06:19:19 +0200 Subject: Rework AST to setup ownership and reference policy. Check it with nodes_gc. --- src/vhdl/simulate/annotations.adb | 3 +-- src/vhdl/simulate/elaboration.adb | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/vhdl/simulate') 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))); -- cgit v1.2.3