aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/iirs.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/iirs.adb')
-rw-r--r--src/vhdl/iirs.adb16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/vhdl/iirs.adb b/src/vhdl/iirs.adb
index 929395b2d..c6b926bc4 100644
--- a/src/vhdl/iirs.adb
+++ b/src/vhdl/iirs.adb
@@ -5535,6 +5535,22 @@ package body Iirs is
Set_Flag10 (Decl, Flag);
end Set_Has_Parameter;
+ function Get_Has_Component (Decl : Iir) return Boolean is
+ begin
+ pragma Assert (Decl /= Null_Iir);
+ pragma Assert (Has_Has_Component (Get_Kind (Decl)),
+ "no field Has_Component");
+ return Get_Flag5 (Decl);
+ end Get_Has_Component;
+
+ procedure Set_Has_Component (Decl : Iir; Flag : Boolean) is
+ begin
+ pragma Assert (Decl /= Null_Iir);
+ pragma Assert (Has_Has_Component (Get_Kind (Decl)),
+ "no field Has_Component");
+ Set_Flag5 (Decl, Flag);
+ end Set_Has_Component;
+
function Get_Has_Identifier_List (Decl : Iir) return Boolean is
begin
pragma Assert (Decl /= Null_Iir);