aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/iirs.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-10-04 05:57:42 +0200
committerTristan Gingold <tgingold@free.fr>2017-10-04 05:57:42 +0200
commitd1f7774d255a509b61983fd6cbfc81ca2dd596fc (patch)
tree50661f69f3eaa75c6a6285d26539dfb54654dc3f /src/vhdl/iirs.adb
parent5e70bbd59e2ced9ee725e62821ff78ca0b2b0639 (diff)
downloadghdl-d1f7774d255a509b61983fd6cbfc81ca2dd596fc.tar.gz
ghdl-d1f7774d255a509b61983fd6cbfc81ca2dd596fc.tar.bz2
ghdl-d1f7774d255a509b61983fd6cbfc81ca2dd596fc.zip
case statement: check element of one-dimensional type is a character type.
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 bcbbc842e..8a30242e4 100644
--- a/src/vhdl/iirs.adb
+++ b/src/vhdl/iirs.adb
@@ -3006,6 +3006,22 @@ package body Iirs is
Set_Flag4 (Atype, Flag);
end Set_Only_Characters_Flag;
+ function Get_Is_Character_Type (Atype : Iir) return Boolean is
+ begin
+ pragma Assert (Atype /= Null_Iir);
+ pragma Assert (Has_Is_Character_Type (Get_Kind (Atype)),
+ "no field Is_Character_Type");
+ return Get_Flag5 (Atype);
+ end Get_Is_Character_Type;
+
+ procedure Set_Is_Character_Type (Atype : Iir; Flag : Boolean) is
+ begin
+ pragma Assert (Atype /= Null_Iir);
+ pragma Assert (Has_Is_Character_Type (Get_Kind (Atype)),
+ "no field Is_Character_Type");
+ Set_Flag5 (Atype, Flag);
+ end Set_Is_Character_Type;
+
function Get_Type_Staticness (Atype : Iir) return Iir_Staticness is
begin
pragma Assert (Atype /= Null_Iir);