aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;