aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/iirs.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-09-26 20:40:24 +0200
committerTristan Gingold <tgingold@free.fr>2016-09-27 02:27:51 +0200
commitf44b3c78755e01a9bd7fd9b639a08711b7c52660 (patch)
treec3bd192c03ce9d5403288c330e21e8c7811a08a9 /src/vhdl/iirs.adb
parent080c7dd9329aa90d4d797f638bb34312487cd496 (diff)
downloadghdl-f44b3c78755e01a9bd7fd9b639a08711b7c52660.tar.gz
ghdl-f44b3c78755e01a9bd7fd9b639a08711b7c52660.tar.bz2
ghdl-f44b3c78755e01a9bd7fd9b639a08711b7c52660.zip
vhdl08: more support for interface subprograms.
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 1cf90d515..787be2df1 100644
--- a/src/vhdl/iirs.adb
+++ b/src/vhdl/iirs.adb
@@ -2478,6 +2478,22 @@ package body Iirs is
Set_Field3 (Def, Decl);
end Set_Type_Declarator;
+ function Get_Associated_Type (Def : Iir) return Iir is
+ begin
+ pragma Assert (Def /= Null_Iir);
+ pragma Assert (Has_Associated_Type (Get_Kind (Def)),
+ "no field Associated_Type");
+ return Get_Field5 (Def);
+ end Get_Associated_Type;
+
+ procedure Set_Associated_Type (Def : Iir; Atype : Iir) is
+ begin
+ pragma Assert (Def /= Null_Iir);
+ pragma Assert (Has_Associated_Type (Get_Kind (Def)),
+ "no field Associated_Type");
+ Set_Field5 (Def, Atype);
+ end Set_Associated_Type;
+
function Get_Enumeration_Literal_List (Target : Iir) return Iir_List is
begin
pragma Assert (Target /= Null_Iir);