From c79e9025912c8df857141ce45080a9e779b4aa20 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 22 Oct 2019 21:16:58 +0200 Subject: vhdl-annotations: handle some declarations in vunits. --- src/vhdl/vhdl-annotations.adb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vhdl/vhdl-annotations.adb b/src/vhdl/vhdl-annotations.adb index 660a5001d..0ffd61e69 100644 --- a/src/vhdl/vhdl-annotations.adb +++ b/src/vhdl/vhdl-annotations.adb @@ -1185,6 +1185,12 @@ package body Vhdl.Annotations is | Iir_Kind_Psl_Cover_Directive | Iir_Kind_Psl_Restrict_Directive => null; + when Iir_Kind_Signal_Declaration + | Iir_Kind_Function_Declaration + | Iir_Kind_Procedure_Declaration + | Iir_Kind_Function_Body + | Iir_Kind_Procedure_Body => + Annotate_Declaration (Vunit_Info, Item); when others => Error_Kind ("annotate_vunit_declaration", Item); end case; -- cgit v1.2.3