diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-07-29 06:55:56 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-07-29 06:55:56 +0200 |
commit | e704f40353cf3932c12180a2f9d67b6fef70db84 (patch) | |
tree | 028a36e2ed0631982e4f1acb736ff5c53bb0f253 /src/vhdl/vhdl-nodes.adb | |
parent | 630c988efbcdc8e9679df29a7521ec3b376f17fe (diff) | |
download | ghdl-e704f40353cf3932c12180a2f9d67b6fef70db84.tar.gz ghdl-e704f40353cf3932c12180a2f9d67b6fef70db84.tar.bz2 ghdl-e704f40353cf3932c12180a2f9d67b6fef70db84.zip |
vhdl-nodes: add Get/Set_Stop_Flag. For #2150
Diffstat (limited to 'src/vhdl/vhdl-nodes.adb')
-rw-r--r-- | src/vhdl/vhdl-nodes.adb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-nodes.adb b/src/vhdl/vhdl-nodes.adb index c2d45fe32..71914dfd3 100644 --- a/src/vhdl/vhdl-nodes.adb +++ b/src/vhdl/vhdl-nodes.adb @@ -7170,6 +7170,22 @@ package body Vhdl.Nodes is Set_Flag11 (Stmt, Flag); end Set_Suspend_Flag; + function Get_Stop_Flag (Stmt : Iir) return Boolean is + begin + pragma Assert (Stmt /= Null_Iir); + pragma Assert (Has_Stop_Flag (Get_Kind (Stmt)), + "no field Stop_Flag"); + return Get_Flag13 (Stmt); + end Get_Stop_Flag; + + procedure Set_Stop_Flag (Stmt : Iir; Flag : Boolean) is + begin + pragma Assert (Stmt /= Null_Iir); + pragma Assert (Has_Stop_Flag (Get_Kind (Stmt)), + "no field Stop_Flag"); + Set_Flag13 (Stmt, Flag); + end Set_Stop_Flag; + function Get_Is_Ref (N : Iir) return Boolean is begin pragma Assert (N /= Null_Iir); |