@@ -110,7 +110,7 @@ class COFFPlatformRuntimeState {
110110
111111 const char *dlerror ();
112112 void *dlopen (std::string_view Name, int Mode);
113- int dlupdate (void *DSOHandle, int Mode );
113+ int dlupdate (void *DSOHandle);
114114 int dlclose (void *Header);
115115 void *dlsym (void *Header, std::string_view Symbol);
116116
@@ -142,7 +142,7 @@ class COFFPlatformRuntimeState {
142142 Error dlopenFull (JITDylibState &JDS);
143143 Error dlopenInitialize (JITDylibState &JDS, COFFJITDylibDepInfoMap &DepInfo);
144144
145- Error dlupdateImpl (void *DSOHandle, int Mode );
145+ Error dlupdateImpl (void *DSOHandle);
146146 Error dlupdateFull (JITDylibState &JDS);
147147 Error dlupdateInitialize (JITDylibState &JDS);
148148
@@ -270,13 +270,13 @@ void *COFFPlatformRuntimeState::dlopen(std::string_view Path, int Mode) {
270270 }
271271}
272272
273- int COFFPlatformRuntimeState::dlupdate (void *DSOHandle, int Mode ) {
273+ int COFFPlatformRuntimeState::dlupdate (void *DSOHandle) {
274274 ORC_RT_DEBUG ({
275275 std::string S;
276276 printdbg (" COFFPlatform::dlupdate(%p) (%s)\n " , DSOHandle, S.c_str ());
277277 });
278278 std::lock_guard<std::recursive_mutex> Lock (JDStatesMutex);
279- if (auto Err = dlupdateImpl (DSOHandle, Mode )) {
279+ if (auto Err = dlupdateImpl (DSOHandle)) {
280280 // FIXME: Make dlerror thread safe.
281281 DLFcnError = toString (std::move (Err));
282282 return -1 ;
@@ -409,7 +409,7 @@ Error COFFPlatformRuntimeState::dlopenInitialize(
409409 return Error::success ();
410410}
411411
412- Error COFFPlatformRuntimeState::dlupdateImpl (void *DSOHandle, int Mode ) {
412+ Error COFFPlatformRuntimeState::dlupdateImpl (void *DSOHandle) {
413413 // Try to find JITDylib state by name.
414414 auto *JDS = getJITDylibStateByHeader (DSOHandle);
415415
@@ -735,8 +735,8 @@ void *__orc_rt_coff_jit_dlopen(const char *path, int mode) {
735735 return COFFPlatformRuntimeState::get ().dlopen (path, mode);
736736}
737737
738- int __orc_rt_coff_jit_dlupdate (void *dso_handle, int mode ) {
739- return COFFPlatformRuntimeState::get ().dlupdate (dso_handle, mode );
738+ int __orc_rt_coff_jit_dlupdate (void *dso_handle) {
739+ return COFFPlatformRuntimeState::get ().dlupdate (dso_handle);
740740}
741741
742742int __orc_rt_coff_jit_dlclose (void *header) {
0 commit comments