aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-utils.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-01-29 09:13:27 +0100
committerTristan Gingold <tgingold@free.fr>2023-01-29 09:13:27 +0100
commitf84ffd4a37781bcfa7eab0d1b359dce178924425 (patch)
tree156821eac041594039d259d63c560e0c263632fb /src/vhdl/vhdl-utils.ads
parent5e6b4c599933724be5a88d468502ae2d963e5ada (diff)
downloadghdl-f84ffd4a37781bcfa7eab0d1b359dce178924425.tar.gz
ghdl-f84ffd4a37781bcfa7eab0d1b359dce178924425.tar.bz2
ghdl-f84ffd4a37781bcfa7eab0d1b359dce178924425.zip
vhdl: add Is_Owned_Subtype_Indication
Diffstat (limited to 'src/vhdl/vhdl-utils.ads')
-rw-r--r--src/vhdl/vhdl-utils.ads4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-utils.ads b/src/vhdl/vhdl-utils.ads
index 8cce0eb14..5cdef0daa 100644
--- a/src/vhdl/vhdl-utils.ads
+++ b/src/vhdl/vhdl-utils.ads
@@ -258,6 +258,10 @@ package Vhdl.Utils is
-- skip over denoting names.
function Get_Type_Of_Subtype_Indication (Ind : Iir) return Iir;
+ -- Return True iff the subtype indication of DECL is defined/owned by
+ -- DECL.
+ function Is_Owned_Subtype_Indication (Decl : Iir) return Boolean;
+
-- Get the type of an index_subtype_definition or of a discrete_range from
-- an index_constraint.
function Get_Index_Type (Index_Type : Iir) return Iir