diff options
author | Lang Hames <lhames@gmail.com> | 2022-08-03 17:42:17 -0700 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2022-08-08 12:14:16 -0700 |
commit | d3897d2f3a4dd5b8f2bed86d115c0432c82b3197 (patch) | |
tree | 83309e4de1421aa6bf3366c9f82fe529e0f6cd1a /llvm/include | |
parent | b3293305e594013268ec6efb163b37e714e94fc0 (diff) | |
download | llvm-d3897d2f3a4dd5b8f2bed86d115c0432c82b3197.zip llvm-d3897d2f3a4dd5b8f2bed86d115c0432c82b3197.tar.gz llvm-d3897d2f3a4dd5b8f2bed86d115c0432c82b3197.tar.bz2 |
[ORC] Ensure that llvm_orc_registerJITLoaderGDBAllocAction is linked into tools.
Add a reference to llvm_orc_registerJITLoaderGDBAllocAction from the
linkComponents function in the lli, llvm-jitlink, and llvm-jitlink-executor
tools. This ensures that llvm_orc_registerJITLoaderGDBAllocAction is not
dead-stripped in optimized builds, which may cause failures in these tools.
The llvm_orc_registerJITLoaderGDBAllocAction function was originally added with
MachO debugging support in 69be352a1961a, but that patch failed to update the
linkComponents functions.
http://llvm.org/PR56817
(cherry picked from commit b5f76d83ff8b57b2a6e4897beb388837803643da)
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.h b/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.h index cfb9511..99175d7 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.h @@ -19,4 +19,7 @@ extern "C" llvm::orc::shared::CWrapperFunctionResult llvm_orc_registerJITLoaderGDBWrapper(const char *Data, uint64_t Size); +extern "C" llvm::orc::shared::CWrapperFunctionResult +llvm_orc_registerJITLoaderGDBAllocAction(const char *Data, size_t Size); + #endif // LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_JITLOADERGDB_H |