@@ -105,7 +105,7 @@ class ELFNixPlatformRuntimeState {
105105
106106 const char *dlerror ();
107107 void *dlopen (std::string_view Name, int Mode);
108- int dlupdate (void *DSOHandle, int Mode );
108+ int dlupdate (void *DSOHandle);
109109 int dlclose (void *DSOHandle);
110110 void *dlsym (void *DSOHandle, std::string_view Symbol);
111111
@@ -137,7 +137,7 @@ class ELFNixPlatformRuntimeState {
137137 Error dlopenInitialize (std::unique_lock<std::recursive_mutex> &JDStatesLock,
138138 PerJITDylibState &JDS,
139139 ELFNixJITDylibDepInfoMap &DepInfo);
140- Error dlupdateImpl (void *DSOHandle, int Mode );
140+ Error dlupdateImpl (void *DSOHandle);
141141 Error dlupdateFull (std::unique_lock<std::recursive_mutex> &JDStatesLock,
142142 PerJITDylibState &JDS);
143143
@@ -314,8 +314,8 @@ void *ELFNixPlatformRuntimeState::dlopen(std::string_view Path, int Mode) {
314314 }
315315}
316316
317- int ELFNixPlatformRuntimeState::dlupdate (void *DSOHandle, int Mode ) {
318- if (auto Err = dlupdateImpl (DSOHandle, Mode )) {
317+ int ELFNixPlatformRuntimeState::dlupdate (void *DSOHandle) {
318+ if (auto Err = dlupdateImpl (DSOHandle)) {
319319 // FIXME: Make dlerror thread safe.
320320 DLFcnError = toString (std::move (Err));
321321 return -1 ;
@@ -537,7 +537,7 @@ Error ELFNixPlatformRuntimeState::dlopenInitialize(
537537 return Error::success ();
538538}
539539
540- Error ELFNixPlatformRuntimeState::dlupdateImpl (void *DSOHandle, int Mode ) {
540+ Error ELFNixPlatformRuntimeState::dlupdateImpl (void *DSOHandle) {
541541 std::unique_lock<std::recursive_mutex> Lock (JDStatesMutex);
542542
543543 // Try to find JITDylib state by name.
@@ -823,8 +823,8 @@ void *__orc_rt_elfnix_jit_dlopen(const char *path, int mode) {
823823 return ELFNixPlatformRuntimeState::get ().dlopen (path, mode);
824824}
825825
826- int __orc_rt_elfnix_jit_dlupdate (void *dso_handle, int mode ) {
827- return ELFNixPlatformRuntimeState::get ().dlupdate (dso_handle, mode );
826+ int __orc_rt_elfnix_jit_dlupdate (void *dso_handle) {
827+ return ELFNixPlatformRuntimeState::get ().dlupdate (dso_handle);
828828}
829829
830830int __orc_rt_elfnix_jit_dlclose (void *dso_handle) {
0 commit comments