aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-05-18 18:49:20 +0200
committerTristan Gingold <tgingold@free.fr>2020-05-18 18:49:20 +0200
commitea9007ec295ac8f0c49be6a03207cc032f240c3a (patch)
treee4bbc87e0ad8f01de96596a13e5572da3428f930
parentf77b278c322b157ddf62b9ef647164bc1638c247 (diff)
downloadghdl-ea9007ec295ac8f0c49be6a03207cc032f240c3a.tar.gz
ghdl-ea9007ec295ac8f0c49be6a03207cc032f240c3a.tar.bz2
ghdl-ea9007ec295ac8f0c49be6a03207cc032f240c3a.zip
netlists: make free_instance private and remove_instance public.
-rw-r--r--src/synth/netlists.ads10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/synth/netlists.ads b/src/synth/netlists.ads
index 58900e748..e5560ba0a 100644
--- a/src/synth/netlists.ads
+++ b/src/synth/netlists.ads
@@ -270,10 +270,8 @@ package Netlists is
Nbr_Params : Param_Nbr)
return Instance;
- -- Mark INST as free, but keep it in the module.
- -- Use Remove_Free_Instances for a cleanup.
- -- TODO: Destroy instance in Remove_Free_Instances.
- procedure Free_Instance (Inst : Instance);
+ -- Remove and free the unconnected instance INST.
+ procedure Remove_Instance (Inst : Instance);
function Is_Self_Instance (I : Instance) return Boolean;
function Get_Module (Inst : Instance) return Module;
@@ -441,8 +439,8 @@ private
-- parent module.
procedure Extract_Instance (Inst : Instance);
- -- Remove and free the unconnected instance INST.
- procedure Remove_Instance (Inst : Instance);
+ -- Mark INST as free. Must be unconnected and removed from its module.
+ procedure Free_Instance (Inst : Instance);
type Input_Record is record
Parent : Instance;