@@ -245,7 +245,7 @@ class MachOPlatformRuntimeState {
245245
246246 const char *dlerror ();
247247 void *dlopen (std::string_view Name, int Mode);
248- int dlupdate (void *DSOHandle, int Mode );
248+ int dlupdate (void *DSOHandle);
249249 int dlclose (void *DSOHandle);
250250 void *dlsym (void *DSOHandle, const char *Symbol);
251251
@@ -295,7 +295,7 @@ class MachOPlatformRuntimeState {
295295 Error dlopenInitialize (std::unique_lock<std::mutex> &JDStatesLock,
296296 JITDylibState &JDS, MachOJITDylibDepInfoMap &DepInfo);
297297
298- Error dlupdateImpl (void *DSOHandle, int Mode );
298+ Error dlupdateImpl (void *DSOHandle);
299299 Error dlupdateFull (std::unique_lock<std::mutex> &JDStatesLock,
300300 JITDylibState &JDS);
301301 Error dlupdateInitialize (std::unique_lock<std::mutex> &JDStatesLock,
@@ -710,13 +710,13 @@ void *MachOPlatformRuntimeState::dlopen(std::string_view Path, int Mode) {
710710 }
711711}
712712
713- int MachOPlatformRuntimeState::dlupdate (void *DSOHandle, int Mode ) {
713+ int MachOPlatformRuntimeState::dlupdate (void *DSOHandle) {
714714 ORC_RT_DEBUG ({
715715 std::string S;
716716 printdbg (" MachOPlatform::dlupdate(%p) (%s)\n " , DSOHandle, S.c_str ());
717717 });
718718 std::lock_guard<std::recursive_mutex> Lock (DyldAPIMutex);
719- if (auto Err = dlupdateImpl (DSOHandle, Mode )) {
719+ if (auto Err = dlupdateImpl (DSOHandle)) {
720720 // FIXME: Make dlerror thread safe.
721721 DLFcnError = toString (std::move (Err));
722722 return -1 ;
@@ -1179,7 +1179,7 @@ Error MachOPlatformRuntimeState::dlopenInitialize(
11791179 return Error::success ();
11801180}
11811181
1182- Error MachOPlatformRuntimeState::dlupdateImpl (void *DSOHandle, int Mode ) {
1182+ Error MachOPlatformRuntimeState::dlupdateImpl (void *DSOHandle) {
11831183 std::unique_lock<std::mutex> Lock (JDStatesMutex);
11841184
11851185 // Try to find JITDylib state by DSOHandle.
@@ -1513,8 +1513,8 @@ void *__orc_rt_macho_jit_dlopen(const char *path, int mode) {
15131513 return MachOPlatformRuntimeState::get ().dlopen (path, mode);
15141514}
15151515
1516- int __orc_rt_macho_jit_dlupdate (void *dso_handle, int mode ) {
1517- return MachOPlatformRuntimeState::get ().dlupdate (dso_handle, mode );
1516+ int __orc_rt_macho_jit_dlupdate (void *dso_handle) {
1517+ return MachOPlatformRuntimeState::get ().dlupdate (dso_handle);
15181518}
15191519
15201520int __orc_rt_macho_jit_dlclose (void *dso_handle) {
0 commit comments