diff options
author | Tristan Gingold <tgingold@free.fr> | 2015-03-31 20:44:40 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2015-03-31 20:44:40 +0200 |
commit | 1469686228b35ca0793ed28d1614d41a01e9cdb5 (patch) | |
tree | 6a082e12c961cac0f2fea48b82a2ca213d5cef63 /src/vhdl/translate/trans-chap9.adb | |
parent | d43f982a3168b554fd0745c23c59f94503c0a211 (diff) | |
download | ghdl-1469686228b35ca0793ed28d1614d41a01e9cdb5.tar.gz ghdl-1469686228b35ca0793ed28d1614d41a01e9cdb5.tar.bz2 ghdl-1469686228b35ca0793ed28d1614d41a01e9cdb5.zip |
Fix entity instantiation with extended identifier.
From a patch by Ole Myren Rohne.
Diffstat (limited to 'src/vhdl/translate/trans-chap9.adb')
-rw-r--r-- | src/vhdl/translate/trans-chap9.adb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/vhdl/translate/trans-chap9.adb b/src/vhdl/translate/trans-chap9.adb index f6ee22bbc..146bb818a 100644 --- a/src/vhdl/translate/trans-chap9.adb +++ b/src/vhdl/translate/trans-chap9.adb @@ -1420,15 +1420,17 @@ package body Trans.Chap9 is function Get_Arch_Name return String is begin if Arch /= Null_Iir then - return "ARCH__" & Image_Identifier (Arch); + return "ARCH__" & Identifier_To_String (Arch); else return "LASTARCH"; end if; end Get_Arch_Name; + Entity_Library : constant Iir := + Get_Library (Get_Design_File (Entity_Unit)); Str : constant String := - Image_Identifier (Get_Library (Get_Design_File (Entity_Unit))) - & "__" & Image_Identifier (Entity) & "__" + Identifier_To_String (Entity_Library) & "__" + & Identifier_To_String (Entity) & "__" & Get_Arch_Name & "__"; Sub_Inter : O_Inter_List; Arg : O_Dnode; |