aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-07-11 19:22:11 +0200
committerTristan Gingold <tgingold@free.fr>2019-07-11 19:22:11 +0200
commitf44d7c3466dc1b4013ef2bbeab524b28a166ef96 (patch)
treea3db6e4862c8d8284963b4f4d140752347e9f21f
parent02e5d6075c095b8267dd0f4c08abd28d56dbbfa7 (diff)
downloadghdl-f44d7c3466dc1b4013ef2bbeab524b28a166ef96.tar.gz
ghdl-f44d7c3466dc1b4013ef2bbeab524b28a166ef96.tar.bz2
ghdl-f44d7c3466dc1b4013ef2bbeab524b28a166ef96.zip
libghdl: import Free_Dependence_List.
-rw-r--r--python/libghdl/thin/vhdl/sem_lib.py2
-rw-r--r--src/vhdl/vhdl-sem_lib.adb1
-rw-r--r--src/vhdl/vhdl-sem_lib.ads3
3 files changed, 6 insertions, 0 deletions
diff --git a/python/libghdl/thin/vhdl/sem_lib.py b/python/libghdl/thin/vhdl/sem_lib.py
index 28f7adc39..36559ec5e 100644
--- a/python/libghdl/thin/vhdl/sem_lib.py
+++ b/python/libghdl/thin/vhdl/sem_lib.py
@@ -3,3 +3,5 @@ from libghdl import libghdl
Load_File = libghdl.vhdl__sem_lib__load_file
Finish_Compilation = libghdl.vhdl__sem_lib__finish_compilation
+
+Free_Dependence_List = libghdl.vhdl__sem_lib__free_dependence_list
diff --git a/src/vhdl/vhdl-sem_lib.adb b/src/vhdl/vhdl-sem_lib.adb
index dab415789..95a4a4ae8 100644
--- a/src/vhdl/vhdl-sem_lib.adb
+++ b/src/vhdl/vhdl-sem_lib.adb
@@ -172,6 +172,7 @@ package body Vhdl.Sem_Lib is
Next (It);
end loop;
Destroy_Iir_List (List);
+ Set_Dependence_List (Design, Null_Iir_List);
end Free_Dependence_List;
procedure Load_Parse_Design_Unit (Design_Unit: Iir_Design_Unit; Loc : Iir)
diff --git a/src/vhdl/vhdl-sem_lib.ads b/src/vhdl/vhdl-sem_lib.ads
index 544359bf3..97803d8c3 100644
--- a/src/vhdl/vhdl-sem_lib.ads
+++ b/src/vhdl/vhdl-sem_lib.ads
@@ -55,4 +55,7 @@ package Vhdl.Sem_Lib is
-- Analyze UNIT.
procedure Finish_Compilation
(Unit : Iir_Design_Unit; Main : Boolean := False);
+
+ -- Free the dependence list of DESIGN. For libghdl.
+ procedure Free_Dependence_List (Design : Iir_Design_Unit);
end Vhdl.Sem_Lib;