We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb90c4a commit 7052ffbCopy full SHA for 7052ffb
1 file changed
src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp
@@ -44,6 +44,7 @@
44
#include <llvm/Target/TargetMachine.h>
45
#include <llvm/Support/TargetSelect.h>
46
#include <llvm/Support/Casting.h>
47
+#include <llvm/Support/DynamicLibrary.h>
48
#if LLVM_VERSION_MAJOR >= 18
49
#include <llvm/TargetParser/Host.h>
50
#else
@@ -249,6 +250,13 @@ class LPJit
249
250
debug_printf("ORCJIT skip addMapping for unknown JITDylib handle %p\n", jd);
251
return;
252
}
253
+#if LP_ORCJIT_WIN21_STABILITY_MODE
254
+ auto sym_name = llvm::unwrap(sym)->getName().str();
255
+ if (!sym_name.empty()) {
256
+ llvm::sys::DynamicLibrary::AddSymbol(sym_name, addr);
257
+ }
258
+ return;
259
+#endif
260
auto& es = jit->lljit->getExecutionSession();
261
auto name = es.intern(llvm::unwrap(sym)->getName());
262
SymbolMap map(1);
0 commit comments