aboutsummaryrefslogtreecommitdiffstats
path: root/src/ghdldrv/ghdlxml.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-11-08 06:16:36 +0100
committerTristan Gingold <tgingold@free.fr>2017-11-08 06:16:36 +0100
commit4035edd1239f927ebd50fad88f01786db4d6a262 (patch)
treed9ca5a3210b18774b1646eb39b0a393dfb8cef1c /src/ghdldrv/ghdlxml.adb
parent6a7904b43d7741778db890d5b59057059254b520 (diff)
downloadghdl-4035edd1239f927ebd50fad88f01786db4d6a262.tar.gz
ghdl-4035edd1239f927ebd50fad88f01786db4d6a262.tar.bz2
ghdl-4035edd1239f927ebd50fad88f01786db4d6a262.zip
Remove List_Others, cleanup lists.
Diffstat (limited to 'src/ghdldrv/ghdlxml.adb')
-rw-r--r--src/ghdldrv/ghdlxml.adb36
1 files changed, 16 insertions, 20 deletions
diff --git a/src/ghdldrv/ghdlxml.adb b/src/ghdldrv/ghdlxml.adb
index cc7a5c9f4..6bad81aad 100644
--- a/src/ghdldrv/ghdlxml.adb
+++ b/src/ghdldrv/ghdlxml.adb
@@ -235,36 +235,32 @@ package body Ghdlxml is
is
El : Iir;
begin
- if L = Null_Iir_List then
- return;
- end if;
-
- Put_Stag (Id);
case L is
+ when Null_Iir_List =>
+ null;
+
when Iir_List_All =>
+ Put_Stag (Id);
Put_Attribute ("list-id", "all");
Put_Empty_Stag_End;
- return;
- when Iir_List_Others =>
- Put_Attribute ("list-id", "others");
- Put_Empty_Stag_End;
- return;
+
when others =>
+ Put_Stag (Id);
Put_Attribute ("list-id", Strip (Iir_List'Image (L)));
Put_Stag_End;
- end case;
- for I in Natural loop
- El := Get_Nth_Element (L, I);
- exit when El = Null_Iir;
- if Ref then
+ for I in Natural loop
+ El := Get_Nth_Element (L, I);
+ exit when El = Null_Iir;
+ if Ref then
Disp_Iir_Ref ("el", El);
- else
- Disp_Iir ("el", El);
- end if;
- end loop;
+ else
+ Disp_Iir ("el", El);
+ end if;
+ end loop;
- Put_Etag (Id);
+ Put_Etag (Id);
+ end case;
end Disp_Iir_List;
procedure Disp_Iir_Flist (Id : String; L : Iir_Flist; Ref : Boolean)