@@ -182,23 +182,23 @@ def locate_bitcode_lib(name: str) -> LocatedBitcodeLib:
182182 return _locate_bitcode_lib (name )
183183
184184
185- def locate_bitcode_lib_by_name (name : str , filename : str ) -> LocatedBitcodeLib :
185+ def locate_bitcode_lib_by_name (libname : str , filename : str ) -> LocatedBitcodeLib :
186186 """Locate an exact bitcode filename using a supported library's search paths.
187187
188188 This lets a library define its own filename convention, including any
189189 architecture or other attributes encoded in the filename.
190190
191191 Args:
192- name : Supported bitcode library whose configured directories to search.
192+ libname : Supported bitcode library whose configured directories to search.
193193 filename: Exact file name to locate. Directory components are not allowed.
194194
195195 Raises:
196196 TypeError: If ``filename`` is not a string.
197- ValueError: If ``name `` is unsupported or ``filename`` is not a file name.
197+ ValueError: If ``libname `` is unsupported or ``filename`` is not a file name.
198198 BitcodeLibNotFoundError: If ``filename`` cannot be found.
199199 """
200200 _validate_filename (filename )
201- return _locate_bitcode_lib (name , filename = filename )
201+ return _locate_bitcode_lib (libname , filename = filename )
202202
203203
204204@functools .cache
@@ -213,19 +213,19 @@ def find_bitcode_lib(name: str) -> str:
213213
214214
215215@functools .cache
216- def find_bitcode_lib_by_name (name : str , filename : str ) -> str :
216+ def find_bitcode_lib_by_name (libname : str , filename : str ) -> str :
217217 """Find an exact bitcode filename using a supported library's search paths.
218218
219219 This lets a library define its own filename convention, including any
220220 architecture or other attributes encoded in the filename.
221221
222222 Args:
223- name : Supported bitcode library whose configured directories to search.
223+ libname : Supported bitcode library whose configured directories to search.
224224 filename: Exact file name to find. Directory components are not allowed.
225225
226226 Raises:
227227 TypeError: If ``filename`` is not a string.
228- ValueError: If ``name `` is unsupported or ``filename`` is not a file name.
228+ ValueError: If ``libname `` is unsupported or ``filename`` is not a file name.
229229 BitcodeLibNotFoundError: If ``filename`` cannot be found.
230230 """
231- return locate_bitcode_lib_by_name (name , filename ).abs_path
231+ return locate_bitcode_lib_by_name (libname , filename ).abs_path
0 commit comments