diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-06-24 18:37:53 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-06-24 21:14:11 +0200 |
commit | 37d33fb7b2f43e275a98d22561080758fcdfc601 (patch) | |
tree | 8062ee7a9c9a2970814d33a7ca1d39b82c47d5f3 /src/libraries.ads | |
parent | 9c4bbedd7baf23e491e52361643c308623bba1f3 (diff) | |
download | ghdl-37d33fb7b2f43e275a98d22561080758fcdfc601.tar.gz ghdl-37d33fb7b2f43e275a98d22561080758fcdfc601.tar.bz2 ghdl-37d33fb7b2f43e275a98d22561080758fcdfc601.zip |
libraries: add Get_Library_No_Create.
Diffstat (limited to 'src/libraries.ads')
-rw-r--r-- | src/libraries.ads | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libraries.ads b/src/libraries.ads index 900cb67cf..396ba8885 100644 --- a/src/libraries.ads +++ b/src/libraries.ads @@ -107,6 +107,10 @@ package Libraries is function Find_Primary_Unit (Library: Iir_Library_Declaration; Name: Name_Id) return Iir_Design_Unit; + -- Get the library named IDENT. Return Null_Iir if it doesn't exist. + function Get_Library_No_Create (Ident : Name_Id) + return Iir_Library_Declaration; + -- Get or create a library from an identifier. -- LOC is used only to report errors. function Get_Library (Ident : Name_Id; Loc : Location_Type) |