Skip to content

Commit 99f14e4

Browse files
committed
Remove mode arg
1 parent 3d19cd8 commit 99f14e4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

compiler-rt/lib/orc/coff_platform.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

742742
int __orc_rt_coff_jit_dlclose(void *header) {

compiler-rt/lib/orc/coff_platform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// dlfcn functions.
2020
ORC_RT_INTERFACE const char *__orc_rt_coff_jit_dlerror();
2121
ORC_RT_INTERFACE void *__orc_rt_coff_jit_dlopen(const char *path, int mode);
22-
ORC_RT_INTERFACE int __orc_rt_coff_jit_dlupdate(void *dso_handle, int mode);
22+
ORC_RT_INTERFACE int __orc_rt_coff_jit_dlupdate(void *dso_handle);
2323
ORC_RT_INTERFACE int __orc_rt_coff_jit_dlclose(void *header);
2424
ORC_RT_INTERFACE void *__orc_rt_coff_jit_dlsym(void *header,
2525
const char *symbol);

0 commit comments

Comments
 (0)