[llvm] 1286bbc - [ORC][examples] Export exectuable symbols explicitly in LLJITWithExecutorProcessControl
Stefan Gränitz via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 23 12:40:38 PDT 2021
Author: Stefan Gränitz
Date: 2021-09-23T21:40:06+02:00
New Revision: 1286bbc85f421dbdcab430674783bde17b15ba0d
URL: https://github.com/llvm/llvm-project/commit/1286bbc85f421dbdcab430674783bde17b15ba0d
DIFF: https://github.com/llvm/llvm-project/commit/1286bbc85f421dbdcab430674783bde17b15ba0d.diff
LOG: [ORC][examples] Export exectuable symbols explicitly in LLJITWithExecutorProcessControl
Functions in static code that should be callable from JITed code must be exported. For dynamic libraries extern functions are exported by default. For exectuables, linkers usually strip them away unless we explicitly ask for keeping them.
Reviewed By: xgupta
Differential Revision: https://reviews.llvm.org/D110345
Added:
Modified:
llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/CMakeLists.txt b/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/CMakeLists.txt
index 47f50ca74644..65a5b1bb3a40 100644
--- a/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/CMakeLists.txt
+++ b/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/CMakeLists.txt
@@ -10,3 +10,5 @@ set(LLVM_LINK_COMPONENTS
add_llvm_example(LLJITWithExecutorProcessControl
LLJITWithExecutorProcessControl.cpp
)
+
+export_executable_symbols(LLJITWithExecutorProcessControl)
More information about the llvm-commits
mailing list