@@ -105,7 +105,7 @@ class ELFNixPlatformRuntimeState {
105
105
106
106
const char *dlerror ();
107
107
void *dlopen (std::string_view Name, int Mode);
108
- int dlupdate (void *DSOHandle, int Mode );
108
+ int dlupdate (void *DSOHandle);
109
109
int dlclose (void *DSOHandle);
110
110
void *dlsym (void *DSOHandle, std::string_view Symbol);
111
111
@@ -137,7 +137,7 @@ class ELFNixPlatformRuntimeState {
137
137
Error dlopenInitialize (std::unique_lock<std::recursive_mutex> &JDStatesLock,
138
138
PerJITDylibState &JDS,
139
139
ELFNixJITDylibDepInfoMap &DepInfo);
140
- Error dlupdateImpl (void *DSOHandle, int Mode );
140
+ Error dlupdateImpl (void *DSOHandle);
141
141
Error dlupdateFull (std::unique_lock<std::recursive_mutex> &JDStatesLock,
142
142
PerJITDylibState &JDS);
143
143
@@ -314,8 +314,8 @@ void *ELFNixPlatformRuntimeState::dlopen(std::string_view Path, int Mode) {
314
314
}
315
315
}
316
316
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)) {
319
319
// FIXME: Make dlerror thread safe.
320
320
DLFcnError = toString (std::move (Err));
321
321
return -1 ;
@@ -537,7 +537,7 @@ Error ELFNixPlatformRuntimeState::dlopenInitialize(
537
537
return Error::success ();
538
538
}
539
539
540
- Error ELFNixPlatformRuntimeState::dlupdateImpl (void *DSOHandle, int Mode ) {
540
+ Error ELFNixPlatformRuntimeState::dlupdateImpl (void *DSOHandle) {
541
541
std::unique_lock<std::recursive_mutex> Lock (JDStatesMutex);
542
542
543
543
// Try to find JITDylib state by name.
@@ -823,8 +823,8 @@ void *__orc_rt_elfnix_jit_dlopen(const char *path, int mode) {
823
823
return ELFNixPlatformRuntimeState::get ().dlopen (path, mode);
824
824
}
825
825
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);
828
828
}
829
829
830
830
int __orc_rt_elfnix_jit_dlclose (void *dso_handle) {
0 commit comments