diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-04-27 07:54:52 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-04-27 07:54:52 +0200 |
commit | c8004bbf5b8f27cbe22f380ffcced02c7a0cd5ee (patch) | |
tree | f8a34d9f79e2901a122bc94e295cc9e5a5d20ef8 /src/vhdl/translate | |
parent | c67c81a8fb726c151180d31d79faabe2b291a496 (diff) | |
download | ghdl-c8004bbf5b8f27cbe22f380ffcced02c7a0cd5ee.tar.gz ghdl-c8004bbf5b8f27cbe22f380ffcced02c7a0cd5ee.tar.bz2 ghdl-c8004bbf5b8f27cbe22f380ffcced02c7a0cd5ee.zip |
trans-chap12: minor rewrite.
Diffstat (limited to 'src/vhdl/translate')
-rw-r--r-- | src/vhdl/translate/trans-chap12.adb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vhdl/translate/trans-chap12.adb b/src/vhdl/translate/trans-chap12.adb index 132763024..387c80863 100644 --- a/src/vhdl/translate/trans-chap12.adb +++ b/src/vhdl/translate/trans-chap12.adb @@ -592,6 +592,8 @@ package body Trans.Chap12 is is use Configuration; + Has_Filelist : constant Boolean := Filelist /= ""; + Unit : Iir_Design_Unit; Lib_Unit : Iir; Config_Lib : Iir_Configuration_Declaration; @@ -750,7 +752,7 @@ package body Trans.Chap12 is end if; -- Write the file containing the list of object files. - if Filelist /= "" then + if Has_Filelist then Write_File_List (Filelist); end if; |