diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-09-26 08:13:09 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-09-26 08:13:09 +0200 |
commit | 8269262a63906c16f4fc2fd3c17fc91216eb7f09 (patch) | |
tree | 6d0bb3c3e1488510ba00bf7df81c35825a216e2e /src/vhdl/vhdl-sem_decls.adb | |
parent | 73d2b4ce553340c576a85c8d3d9461ddfd95ea0f (diff) | |
download | ghdl-8269262a63906c16f4fc2fd3c17fc91216eb7f09.tar.gz ghdl-8269262a63906c16f4fc2fd3c17fc91216eb7f09.tar.bz2 ghdl-8269262a63906c16f4fc2fd3c17fc91216eb7f09.zip |
vhdl: analyze subprogram instantiations. WIP. For #1470
Diffstat (limited to 'src/vhdl/vhdl-sem_decls.adb')
-rw-r--r-- | src/vhdl/vhdl-sem_decls.adb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-sem_decls.adb b/src/vhdl/vhdl-sem_decls.adb index 8b365a225..64df1cbfb 100644 --- a/src/vhdl/vhdl-sem_decls.adb +++ b/src/vhdl/vhdl-sem_decls.adb @@ -2276,6 +2276,7 @@ package body Vhdl.Sem_Decls is end if; when Iir_Kind_Component_Declaration => Sem_Component_Declaration (Decl); + when Iir_Kind_Function_Declaration | Iir_Kind_Procedure_Declaration => if Is_Implicit_Subprogram (Decl) then @@ -2291,8 +2292,12 @@ package body Vhdl.Sem_Decls is end if; end if; when Iir_Kind_Function_Body - | Iir_Kind_Procedure_Body => + | Iir_Kind_Procedure_Body => Sem_Subprogram_Body (Decl); + when Iir_Kind_Function_Instantiation_Declaration + | Iir_Kind_Procedure_Instantiation_Declaration => + Sem_Subprogram_Instantiation_Declaration (Decl); + when Iir_Kind_Non_Object_Alias_Declaration => -- Added by Sem_Alias_Declaration. Need to check that no -- existing attribute specification apply to them. |