diff options
Diffstat (limited to 'src/vhdl')
-rw-r--r-- | src/vhdl/python/libghdl/thin.py | 3 | ||||
-rw-r--r-- | src/vhdl/sem_lib.adb | 4 | ||||
-rw-r--r-- | src/vhdl/sem_lib.ads | 2 | ||||
-rw-r--r-- | src/vhdl/translate/ortho_front.adb | 4 |
4 files changed, 8 insertions, 5 deletions
diff --git a/src/vhdl/python/libghdl/thin.py b/src/vhdl/python/libghdl/thin.py index 43ed6ce2f..4de91833d 100644 --- a/src/vhdl/python/libghdl/thin.py +++ b/src/vhdl/python/libghdl/thin.py @@ -200,6 +200,9 @@ class Canon: Extract_Sequential_Statement_Chain_Sensitivity = \ libghdl.canon__canon_extract_sequential_statement_chain_sensitivity +class Sem_Lib: + Load_File = libghdl.sem_lib__load_file + # std.standard diff --git a/src/vhdl/sem_lib.adb b/src/vhdl/sem_lib.adb index d47bf70e0..6139d245e 100644 --- a/src/vhdl/sem_lib.adb +++ b/src/vhdl/sem_lib.adb @@ -61,7 +61,7 @@ package body Sem_Lib is -- parse a file. -- Return a design_file without putting it into the library -- (because it was not analyzed). - function Load_File (File_Name: Name_Id) return Iir_Design_File + function Load_File_Name (File_Name: Name_Id) return Iir_Design_File is Fe : Source_File_Entry; begin @@ -71,7 +71,7 @@ package body Sem_Lib is return Null_Iir; end if; return Load_File (Fe); - end Load_File; + end Load_File_Name; procedure Finish_Compilation (Unit : Iir_Design_Unit; Main : Boolean := False) diff --git a/src/vhdl/sem_lib.ads b/src/vhdl/sem_lib.ads index 4d18356ae..7f57833b5 100644 --- a/src/vhdl/sem_lib.ads +++ b/src/vhdl/sem_lib.ads @@ -24,7 +24,7 @@ package Sem_Lib is -- absolute path). -- Emit an error if the file cannot be opened. -- Return NULL_IIR in case of parse error. - function Load_File (File_Name: Name_Id) return Iir_Design_File; + function Load_File_Name (File_Name: Name_Id) return Iir_Design_File; function Load_File (File : Source_File_Entry) return Iir_Design_File; -- Load, parse, analyze, back-end a design_unit if necessary. diff --git a/src/vhdl/translate/ortho_front.adb b/src/vhdl/translate/ortho_front.adb index 1eb8a3cd8..f17713b0f 100644 --- a/src/vhdl/translate/ortho_front.adb +++ b/src/vhdl/translate/ortho_front.adb @@ -273,7 +273,7 @@ package body Ortho_Front is Flags.Flag_Elaborate := False; -- Read and parse the file. - Res := Load_File (Vhdl_File); + Res := Load_File_Name (Vhdl_File); if Errorout.Nbr_Errors > 0 then raise Compilation_Error; end if; @@ -454,7 +454,7 @@ package body Ortho_Front is begin L := Anaelab_Files; while L /= null loop - Res := Load_File (L.Id); + Res := Load_File_Name (L.Id); if Errorout.Nbr_Errors > 0 then raise Compilation_Error; end if; |