aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-annotations.adb
diff options
context:
space:
mode:
authorPatrick Lehmann <Paebbels@gmail.com>2021-12-15 22:10:09 +0100
committerGitHub <noreply@github.com>2021-12-15 22:10:09 +0100
commit918e15bb6fab7da8719624ac9d37a47db4751375 (patch)
treee343b717af2139c142b660a1c918bce06ecd946a /src/vhdl/vhdl-annotations.adb
parent75bd31ff74ba3965bec27bf34a93b9c451e0d749 (diff)
parentf32d77707a2639fed94978965b3a9690c2bf7904 (diff)
downloadghdl-918e15bb6fab7da8719624ac9d37a47db4751375.tar.gz
ghdl-918e15bb6fab7da8719624ac9d37a47db4751375.tar.bz2
ghdl-918e15bb6fab7da8719624ac9d37a47db4751375.zip
Merge branch 'ghdl:master' into paebbels/pyGHDL-updates
Diffstat (limited to 'src/vhdl/vhdl-annotations.adb')
-rw-r--r--src/vhdl/vhdl-annotations.adb11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/vhdl/vhdl-annotations.adb b/src/vhdl/vhdl-annotations.adb
index b1a36646e..13aa8bf3b 100644
--- a/src/vhdl/vhdl-annotations.adb
+++ b/src/vhdl/vhdl-annotations.adb
@@ -431,7 +431,8 @@ package body Vhdl.Annotations is
when Iir_Kind_Protected_Type_Declaration =>
Annotate_Protected_Type_Declaration (Block_Info, Def);
- when Iir_Kind_Incomplete_Type_Definition =>
+ when Iir_Kind_Incomplete_Type_Definition
+ | Iir_Kind_Subtype_Attribute =>
null;
when Iir_Kind_Foreign_Vector_Type_Definition =>
@@ -509,8 +510,12 @@ package body Vhdl.Annotations is
Create_Object_Info (Block_Info, Decl);
when Iir_Kind_Interface_Package_Declaration =>
Annotate_Interface_Package_Declaration (Block_Info, Decl);
- when Iir_Kinds_Interface_Subprogram_Declaration
- | Iir_Kind_Interface_Type_Declaration =>
+ when Iir_Kind_Interface_Type_Declaration =>
+ if Flag_Synthesis then
+ -- Create an info on the interface_type_definition
+ Create_Object_Info (Block_Info, Get_Type (Decl));
+ end if;
+ when Iir_Kinds_Interface_Subprogram_Declaration =>
-- Macro-expanded
null;
when others =>