[ORC][LLJIT] Use JITLink by default on ELF/x86-64.

This patch switches LLJIT's default JIT linker for ELF/x86-64 from RuntimeDyld
to JITLink.

Most clients should not be affected, but if you were explicitly accessing the
old RTDyldObjectLinkingLayer (e.g. to install JITEventListeners) you will need
to either force use of RuntimeDyld (following the example in
llvm/examples/OrcV2Examples/LLJITWithCustomObjectLinkingLayer), or switch to
using JITLink plugins instead.
This commit is contained in:
Lang Hames 2023-04-17 15:26:28 +00:00
parent 2cd15925f4
commit 85c649bc02

View File

@ -750,7 +750,7 @@ Error LLJITBuilderState::prepareForConstruction() {
UseJITLink = !TT.isOSBinFormatCOFF();
break;
case Triple::x86_64:
UseJITLink = TT.isOSBinFormatMachO();
UseJITLink = !TT.isOSBinFormatCOFF();
break;
default:
break;