diff options
author | Davide Italiano <davidino@meta.com> | 2024-12-14 18:25:50 +0000 |
---|---|---|
committer | Davide Italiano <davidino@meta.com> | 2024-12-14 18:26:32 +0000 |
commit | 61ab36a3e226df32855286dd31a2c3859800475d (patch) | |
tree | 74365b4ee068fa667f087b36ab788988be28ed1f /clang/lib/Interpreter/Interpreter.cpp | |
parent | 9ddcaed3a64c2a187a0cfff4ba8f989c665ae1e5 (diff) | |
download | llvm-61ab36a3e226df32855286dd31a2c3859800475d.zip llvm-61ab36a3e226df32855286dd31a2c3859800475d.tar.gz llvm-61ab36a3e226df32855286dd31a2c3859800475d.tar.bz2 |
Revert "[Clang-REPL] Fix crash during `__run_exit_handlers` with dynamic libraries. (#117475)"
This reverts commit 30ad53b92cec0cff9679d559edcc5b933312ba0c as it breaks
systems that don't have a systemwide libc++ or libstdc++ installed. It should
be rewritten to not invoke the system linker. In the meanwhile, reverting
to unblock the bots.
Diffstat (limited to 'clang/lib/Interpreter/Interpreter.cpp')
-rw-r--r-- | clang/lib/Interpreter/Interpreter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp index 6cd60a9b..fa4c143 100644 --- a/clang/lib/Interpreter/Interpreter.cpp +++ b/clang/lib/Interpreter/Interpreter.cpp @@ -719,9 +719,7 @@ llvm::Error Interpreter::LoadDynamicLibrary(const char *name) { if (auto DLSG = llvm::orc::DynamicLibrarySearchGenerator::Load( name, DL.getGlobalPrefix())) - // FIXME: Eventually we should put each library in its own JITDylib and - // turn off process symbols by default. - EE->getProcessSymbolsJITDylib()->addGenerator(std::move(*DLSG)); + EE->getMainJITDylib().addGenerator(std::move(*DLSG)); else return DLSG.takeError(); |