aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/disp_vhdl.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-11-07 05:47:43 +0100
committerTristan Gingold <tgingold@free.fr>2017-11-07 05:47:43 +0100
commit8ffc472d4def7cb5fb6b0d1af41e217f88a474e6 (patch)
tree9e053fcafec873d8b9302569bc5c1b12247ef4b8 /src/vhdl/disp_vhdl.adb
parent75b1d013e603af6e7d0e27def4f34b5914a6e6fd (diff)
downloadghdl-8ffc472d4def7cb5fb6b0d1af41e217f88a474e6.tar.gz
ghdl-8ffc472d4def7cb5fb6b0d1af41e217f88a474e6.tar.bz2
ghdl-8ffc472d4def7cb5fb6b0d1af41e217f88a474e6.zip
Use flist for signatures.
Diffstat (limited to 'src/vhdl/disp_vhdl.adb')
-rw-r--r--src/vhdl/disp_vhdl.adb8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/vhdl/disp_vhdl.adb b/src/vhdl/disp_vhdl.adb
index f6bde461f..4cc22f0f8 100644
--- a/src/vhdl/disp_vhdl.adb
+++ b/src/vhdl/disp_vhdl.adb
@@ -1258,7 +1258,7 @@ package body Disp_Vhdl is
procedure Disp_Signature (Sig : Iir)
is
Prefix : constant Iir := Get_Signature_Prefix (Sig);
- List : Iir_List;
+ List : constant Iir_Flist := Get_Type_Marks_List (Sig);
El : Iir;
begin
if Is_Valid (Prefix) then
@@ -1266,11 +1266,9 @@ package body Disp_Vhdl is
Disp_Name (Prefix);
end if;
Put (" [");
- List := Get_Type_Marks_List (Sig);
- if List /= Null_Iir_List then
- for I in Natural loop
+ if List /= Null_Iir_Flist then
+ for I in Flist_First .. Flist_Last (List) loop
El := Get_Nth_Element (List, I);
- exit when El = Null_Iir;
if I /= 0 then
Put (", ");
end if;