From c7c6cf6e3b420fed0c9074d25e0072a672a66b39 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 20 Feb 2016 06:49:40 +0100 Subject: trans-chap12: factorize code. --- src/vhdl/translate/trans-chap12.adb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src') diff --git a/src/vhdl/translate/trans-chap12.adb b/src/vhdl/translate/trans-chap12.adb index 35159e9b9..4786ffbbc 100644 --- a/src/vhdl/translate/trans-chap12.adb +++ b/src/vhdl/translate/trans-chap12.adb @@ -546,8 +546,6 @@ package body Trans.Chap12 is use Name_Table; use Configuration; - Primary_Id : Name_Id; - Secondary_Id : Name_Id; Unit : Iir_Design_Unit; Lib_Unit : Iir; Config : Iir_Design_Unit; @@ -558,13 +556,7 @@ package body Trans.Chap12 is Last_Design_Unit : Natural; Nbr_Pkgs : Natural; begin - Primary_Id := Get_Identifier (Primary); - if Secondary /= "" then - Secondary_Id := Get_Identifier (Secondary); - else - Secondary_Id := Null_Identifier; - end if; - Config := Configure (Primary_Id, Secondary_Id); + Config := Configure (Primary, Secondary); if Config = Null_Iir then return; end if; -- cgit v1.2.3