summaryrefslogtreecommitdiff
path: root/src/vhdl/iirs.adb
diff options
context:
space:
mode:
authorTristan Gingold2015-09-02 18:25:25 +0200
committerTristan Gingold2015-09-02 18:25:25 +0200
commit510ff8938793c0cc883bdf2a5f5adfdd95f77880 (patch)
treef222f11ad129f907a127474855313fafa974c9af /src/vhdl/iirs.adb
parent5bd3c2ccf36ce92257616c709460b0006f4f1f7f (diff)
downloadghdl-510ff8938793c0cc883bdf2a5f5adfdd95f77880.tar.gz
ghdl-510ff8938793c0cc883bdf2a5f5adfdd95f77880.tar.bz2
ghdl-510ff8938793c0cc883bdf2a5f5adfdd95f77880.zip
Translate: explicitly clean transient types.
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 1e57b03..010d48d 100644
--- a/src/vhdl/iirs.adb
+++ b/src/vhdl/iirs.adb
@@ -1119,6 +1119,22 @@ package body Iirs is
Set_Field3 (Lit, Atype);
end Set_Literal_Subtype;
+ function Get_Allocator_Subtype (Lit : Iir) return Iir is
+ begin
+ pragma Assert (Lit /= Null_Iir);
+ pragma Assert (Has_Allocator_Subtype (Get_Kind (Lit)),
+ "no field Allocator_Subtype");
+ return Get_Field3 (Lit);
+ end Get_Allocator_Subtype;
+
+ procedure Set_Allocator_Subtype (Lit : Iir; Atype : Iir) is
+ begin
+ pragma Assert (Lit /= Null_Iir);
+ pragma Assert (Has_Allocator_Subtype (Get_Kind (Lit)),
+ "no field Allocator_Subtype");
+ Set_Field3 (Lit, Atype);
+ end Set_Allocator_Subtype;
+
function Get_Entity_Class (Target : Iir) return Token_Type is
begin
pragma Assert (Target /= Null_Iir);