Skip to content

Commit

Permalink
vhdl-nodes: do not reset free hooks on initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
tgingold committed Jun 26, 2021
1 parent 8a50921 commit 15c6de7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/vhdl/vhdl-nodes.adb
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,6 @@ package body Vhdl.Nodes is
procedure Initialize is
begin
Free_Chain := Null_Node;
Nbr_Free_Hooks := 0;
Nodet.Init;
end Initialize;

Expand Down
1 change: 0 additions & 1 deletion src/vhdl/vhdl-nodes.adb.in
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,6 @@ package body Vhdl.Nodes is
procedure Initialize is
begin
Free_Chain := Null_Node;
Nbr_Free_Hooks := 0;
Nodet.Init;
end Initialize;

Expand Down
2 changes: 2 additions & 0 deletions src/vhdl/vhdl-nodes.ads
Original file line number Diff line number Diff line change
Expand Up @@ -7389,6 +7389,8 @@ package Vhdl.Nodes is
procedure Free_Iir (Target : Iir);

-- Hooks called when a node is free.
-- Note: The register procedure must be called only during elaboration, so
-- the set of hooks is defined forever.
type Free_Iir_Hook is access procedure (N : Iir);
procedure Register_Free_Hook (Hook : Free_Iir_Hook);

Expand Down

0 comments on commit 15c6de7

Please sign in to comment.