aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-04-27 07:54:52 +0200
committerTristan Gingold <tgingold@free.fr>2019-04-27 07:54:52 +0200
commitc8004bbf5b8f27cbe22f380ffcced02c7a0cd5ee (patch)
treef8a34d9f79e2901a122bc94e295cc9e5a5d20ef8 /src/vhdl
parentc67c81a8fb726c151180d31d79faabe2b291a496 (diff)
downloadghdl-c8004bbf5b8f27cbe22f380ffcced02c7a0cd5ee.tar.gz
ghdl-c8004bbf5b8f27cbe22f380ffcced02c7a0cd5ee.tar.bz2
ghdl-c8004bbf5b8f27cbe22f380ffcced02c7a0cd5ee.zip
trans-chap12: minor rewrite.
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/translate/trans-chap12.adb4
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;