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

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 17 09:41:07 PDT 2023


Author: Lang Hames
Date: 2023-04-17T16:41:00Z
New Revision: 85c649bc02a6605f541b09b33a200a78275ed90f

URL: https://github.com/llvm/llvm-project/commit/85c649bc02a6605f541b09b33a200a78275ed90f
DIFF: https://github.com/llvm/llvm-project/commit/85c649bc02a6605f541b09b33a200a78275ed90f.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/Orc/LLJIT.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
index a65c3567c1487..d61dde836fa75 100644
--- a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
@@ -750,7 +750,7 @@ Error LLJITBuilderState::prepareForConstruction() {
       UseJITLink = !TT.isOSBinFormatCOFF();
       break;
     case Triple::x86_64:
-      UseJITLink = TT.isOSBinFormatMachO();
+      UseJITLink = !TT.isOSBinFormatCOFF();
       break;
     default:
       break;


        


More information about the llvm-commits mailing list