diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-12-30 10:29:16 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-12-30 10:29:16 +0100 |
commit | f1c30ad16e0914455ee2c84e80714f6b271021f2 (patch) | |
tree | 11ebb7a91faeed8c17fdaf84cd8cd14d334d8c6a /src/ghdldrv | |
parent | 56dde6c446367f85882d288d7606015ace7f80ed (diff) | |
download | ghdl-f1c30ad16e0914455ee2c84e80714f6b271021f2.tar.gz ghdl-f1c30ad16e0914455ee2c84e80714f6b271021f2.tar.bz2 ghdl-f1c30ad16e0914455ee2c84e80714f6b271021f2.zip |
Rework initialization and finalization.
libghdl can now be re-initialized.
Diffstat (limited to 'src/ghdldrv')
-rw-r--r-- | src/ghdldrv/ghdlrun.adb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ghdldrv/ghdlrun.adb b/src/ghdldrv/ghdlrun.adb index e19216fff..2e35122e7 100644 --- a/src/ghdldrv/ghdlrun.adb +++ b/src/ghdldrv/ghdlrun.adb @@ -34,6 +34,7 @@ with Interning; with Files_Map; with Name_Table; with Flags; +with Libraries; with Errorout; use Errorout; with Vhdl.Nodes; use Vhdl.Nodes; @@ -763,11 +764,12 @@ package body Ghdlrun is Ortho_Jit.Finish; Translation.Finalize; - Vhdl.Lists.Initialize; - Str_Table.Initialize; - Vhdl.Nodes.Initialize; - Files_Map.Initialize; + Vhdl.Lists.Finalize; + Str_Table.Finalize; + Vhdl.Nodes.Finalize; + Files_Map.Finalize; Name_Table.Finalize; + Libraries.Finalize; if Flag_Verbose then Put_Line ("Starting simulation"); |