From b1122c405f22ae0bee405658553e62e8aeda79c8 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 31 Aug 2015 16:19:35 +0200 Subject: iirs: block_statement is a ref. --- src/vhdl/iirs.ads | 3 ++- src/vhdl/nodes_meta.adb | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/vhdl') diff --git a/src/vhdl/iirs.ads b/src/vhdl/iirs.ads index 7b701b379..f0ab7ff3d 100644 --- a/src/vhdl/iirs.ads +++ b/src/vhdl/iirs.ads @@ -5590,7 +5590,8 @@ package Iirs is function Get_Design_Unit (Target : Iir) return Iir; procedure Set_Design_Unit (Target : Iir; Unit : Iir); - -- Field: Field5 + -- Corresponding block statement for an implicit guard signal. + -- Field: Field5 Ref function Get_Block_Statement (Target : Iir) return Iir; procedure Set_Block_Statement (Target : Iir; Block : Iir); diff --git a/src/vhdl/nodes_meta.adb b/src/vhdl/nodes_meta.adb index 3dbef4ca5..4cc8a1580 100644 --- a/src/vhdl/nodes_meta.adb +++ b/src/vhdl/nodes_meta.adb @@ -1636,7 +1636,7 @@ package body Nodes_Meta is when Field_Design_Unit => return Attr_None; when Field_Block_Statement => - return Attr_None; + return Attr_Ref; when Field_Signal_Driver => return Attr_None; when Field_Declaration_Chain => @@ -2846,9 +2846,9 @@ package body Nodes_Meta is Field_Name_Staticness, Field_Guard_Expression, Field_Guard_Sensitivity_List, - Field_Block_Statement, Field_Parent, Field_Type, + Field_Block_Statement, -- Iir_Kind_Signal_Declaration Field_Identifier, Field_Has_Disconnect_Flag, -- cgit v1.2.3