diff options
author | Tristan Gingold | 2015-06-07 07:11:46 +0200 |
---|---|---|
committer | Tristan Gingold | 2015-06-07 07:11:46 +0200 |
commit | ec15f5cd21dc4c681ff23bc2d12c379fab2f17c7 (patch) | |
tree | f649383164bae3ec6366e0b8bceb0ff011955ce9 /src/vhdl/iirs.adb | |
parent | d1e23df2396545dcc086ada15cf2a66a4dce5594 (diff) | |
download | ghdl-ec15f5cd21dc4c681ff23bc2d12c379fab2f17c7.tar.gz ghdl-ec15f5cd21dc4c681ff23bc2d12c379fab2f17c7.tar.bz2 ghdl-ec15f5cd21dc4c681ff23bc2d12c379fab2f17c7.zip |
Add suspend_flag.
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 ac25a83..1e57b03 100644 --- a/src/vhdl/iirs.adb +++ b/src/vhdl/iirs.adb @@ -5139,6 +5139,22 @@ package body Iirs is Set_Flag11 (Decl, Flag); end Set_Has_Class; + function Get_Suspend_Flag (Stmt : Iir) return Boolean is + begin + pragma Assert (Stmt /= Null_Iir); + pragma Assert (Has_Suspend_Flag (Get_Kind (Stmt)), + "no field Suspend_Flag"); + return Get_Flag11 (Stmt); + end Get_Suspend_Flag; + + procedure Set_Suspend_Flag (Stmt : Iir; Flag : Boolean) is + begin + pragma Assert (Stmt /= Null_Iir); + pragma Assert (Has_Suspend_Flag (Get_Kind (Stmt)), + "no field Suspend_Flag"); + Set_Flag11 (Stmt, Flag); + end Set_Suspend_Flag; + function Get_Is_Ref (N : Iir) return Boolean is begin pragma Assert (N /= Null_Iir); |