From 095eb34ca4a8fbda0ed2aaaa90bb5aec1d10d621 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 18 May 2017 07:58:22 +0200 Subject: Add comments. --- src/vhdl/translate/trans-chap2.adb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/vhdl/translate/trans-chap2.adb b/src/vhdl/translate/trans-chap2.adb index e7cc1a43f..83bc97b31 100644 --- a/src/vhdl/translate/trans-chap2.adb +++ b/src/vhdl/translate/trans-chap2.adb @@ -1528,11 +1528,13 @@ package body Trans.Chap2 is Info : constant Ortho_Info_Acc := Get_Info (Inst); Constr : O_Assoc_List; begin + -- Macro-expanded instances are handled like a regular package. if Get_Macro_Expanded_Flag (Spec) then Elab_Package (Inst, Inst); return; end if; + -- Package body is reachable through the instance. Set_Scope_Via_Var (Pkg_Info.Package_Body_Scope, Info.Package_Instance_Body_Var); -- cgit v1.2.3