From 45dafa61b5315278660d8b3336ab3acead1adb85 Mon Sep 17 00:00:00 2001 From: Shreyas Atre Date: Sat, 27 Jan 2024 17:18:45 -0600 Subject: [PATCH] Remove undefined functions declaration Signed-off-by: Shreyas Atre --- lib/Interpreter/Paths.cpp | 2 +- lib/Interpreter/Paths.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Interpreter/Paths.cpp b/lib/Interpreter/Paths.cpp index d41e428a5..bbd70d89c 100644 --- a/lib/Interpreter/Paths.cpp +++ b/lib/Interpreter/Paths.cpp @@ -131,7 +131,7 @@ namespace platform { return lib.getOSSpecificHandle(); } - void DLClose(void* Lib, std::string* Err /* = nullptr*/) { + void DLClose(void* Lib, std::string& Err /* = nullptr*/) { auto dl = llvm::sys::DynamicLibrary(Lib); llvm::sys::DynamicLibrary::closeLibrary(dl); if (Err) { diff --git a/lib/Interpreter/Paths.h b/lib/Interpreter/Paths.h index 6cb3db258..6b8862aea 100644 --- a/lib/Interpreter/Paths.h +++ b/lib/Interpreter/Paths.h @@ -49,8 +49,6 @@ std::string NormalizePath(const std::string& Path); /// void* DLOpen(const std::string& Path, std::string& Err); -void* DLSym(const std::string& Name, std::string& Err); - ///\brief Close a handle to a shared library. /// /// \param [in] Lib - Handle to library from previous call to DLOpen