aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-12-06 21:46:54 +0100
committerTristan Gingold <tgingold@free.fr>2016-12-06 21:46:54 +0100
commitbea4d01f012515d5db73fdda272e49ea4086219c (patch)
treedaf03f4cb7bbb2ddd37c928559eb51098cce94cc
parent164ae86d2681975cfdd608f68b4182244c752689 (diff)
downloadghdl-bea4d01f012515d5db73fdda272e49ea4086219c.tar.gz
ghdl-bea4d01f012515d5db73fdda272e49ea4086219c.tar.bz2
ghdl-bea4d01f012515d5db73fdda272e49ea4086219c.zip
Add xrefs for interface_subprograms.
-rw-r--r--src/vhdl/sem_assocs.adb1
-rw-r--r--src/vhdl/sem_decls.adb1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/vhdl/sem_assocs.adb b/src/vhdl/sem_assocs.adb
index 6708355b9..f8620182c 100644
--- a/src/vhdl/sem_assocs.adb
+++ b/src/vhdl/sem_assocs.adb
@@ -1941,6 +1941,7 @@ package body Sem_Assocs is
end case;
Set_Named_Entity (Actual, Res);
+ Xrefs.Xref_Name (Actual);
Set_Use_Flag (Res, True);
end Sem_Association_Subprogram;
diff --git a/src/vhdl/sem_decls.adb b/src/vhdl/sem_decls.adb
index 9fac6d50e..8d3c15587 100644
--- a/src/vhdl/sem_decls.adb
+++ b/src/vhdl/sem_decls.adb
@@ -489,6 +489,7 @@ package body Sem_Decls is
procedure Sem_Interface_Subprogram_Declaration (Inter : Iir) is
begin
Sem_Subprogram_Specification (Inter);
+ Xref_Decl (Inter);
end Sem_Interface_Subprogram_Declaration;
procedure Sem_Interface_Chain (Interface_Chain: Iir;