diff options
author | Tristan Gingold <tgingold@free.fr> | 2016-09-21 06:47:49 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2016-09-22 21:26:52 +0200 |
commit | bcfbe673c08402fc63e2acb4a350d407e14fe993 (patch) | |
tree | 84668ff9546157a953e2033be312fb6554bbc9d8 /src/vhdl/iirs.adb | |
parent | 6ee23b96ecf9ab9e7ca8767ebe8fb825b0309393 (diff) | |
download | ghdl-bcfbe673c08402fc63e2acb4a350d407e14fe993.tar.gz ghdl-bcfbe673c08402fc63e2acb4a350d407e14fe993.tar.bz2 ghdl-bcfbe673c08402fc63e2acb4a350d407e14fe993.zip |
vhdl08: first working example of interface type.
Diffstat (limited to 'src/vhdl/iirs.adb')
-rw-r--r-- | src/vhdl/iirs.adb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/vhdl/iirs.adb b/src/vhdl/iirs.adb index 01d6bfeac..1cf90d515 100644 --- a/src/vhdl/iirs.adb +++ b/src/vhdl/iirs.adb @@ -4530,6 +4530,22 @@ package body Iirs is Set_Field4 (Target, Chain); end Set_Individual_Association_Chain; + function Get_Subprogram_Association_Chain (Target : Iir) return Iir is + begin + pragma Assert (Target /= Null_Iir); + pragma Assert (Has_Subprogram_Association_Chain (Get_Kind (Target)), + "no field Subprogram_Association_Chain"); + return Get_Field4 (Target); + end Get_Subprogram_Association_Chain; + + procedure Set_Subprogram_Association_Chain (Target : Iir; Chain : Iir) is + begin + pragma Assert (Target /= Null_Iir); + pragma Assert (Has_Subprogram_Association_Chain (Get_Kind (Target)), + "no field Subprogram_Association_Chain"); + Set_Field4 (Target, Chain); + end Set_Subprogram_Association_Chain; + function Get_Aggregate_Info (Target : Iir) return Iir is begin pragma Assert (Target /= Null_Iir); |