aboutsummaryrefslogtreecommitdiffstats
path: root/src/libraries.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/libraries.adb')
-rw-r--r--src/libraries.adb22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/libraries.adb b/src/libraries.adb
index 40764e56b..3f737f466 100644
--- a/src/libraries.adb
+++ b/src/libraries.adb
@@ -23,8 +23,6 @@ with System;
with Errorout; use Errorout;
with Scanner;
with Iirs_Utils; use Iirs_Utils;
-with Iir_Chains;
-with Nodes_Meta;
with Parse;
with Name_Table; use Name_Table;
with Str_Table;
@@ -1551,8 +1549,9 @@ package body Libraries is
procedure Finish_Compilation
(Unit : Iir_Design_Unit; Main : Boolean := False)
is
- Lib_Unit : constant Iir := Get_Library_Unit (Unit);
+ Lib_Unit : Iir;
begin
+ Lib_Unit := Get_Library_Unit (Unit);
if (Main or Flags.Dump_All) and then Flags.Dump_Parse then
Disp_Tree.Disp_Tree (Unit);
end if;
@@ -1603,23 +1602,6 @@ package body Libraries is
Canon.Canonicalize (Unit);
- -- FIXME: for Main only ?
- if Get_Kind (Lib_Unit) = Iir_Kind_Package_Declaration
- and then not Get_Need_Body (Lib_Unit)
- and then Get_Need_Instance_Bodies (Lib_Unit)
- then
- -- Create the bodies for instances
- Set_Package_Instantiation_Bodies_Chain
- (Lib_Unit, Canon.Create_Instantiation_Bodies (Lib_Unit, Lib_Unit));
- elsif Get_Kind (Lib_Unit) = Iir_Kind_Package_Body
- and then Get_Need_Instance_Bodies (Get_Package (Lib_Unit))
- then
- Iir_Chains.Append_Chain
- (Lib_Unit, Nodes_Meta.Field_Declaration_Chain,
- Canon.Create_Instantiation_Bodies (Get_Package (Lib_Unit),
- Lib_Unit));
- end if;
-
if (Main or Flags.Dump_All) and then Flags.Dump_Canon then
Disp_Tree.Disp_Tree (Unit);
end if;