[PATCH] D117609: [llvm-jitlink] Prevent dead-stripping of test callback
Ben Langmuir via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 18 15:58:14 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGfa40c53960e2: [llvm-jitlink] Prevent dead-stripping of test callback (authored by benlangmuir).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117609/new/
https://reviews.llvm.org/D117609
Files:
llvm/tools/llvm-jitlink/llvm-jitlink.cpp
Index: llvm/tools/llvm-jitlink/llvm-jitlink.cpp
===================================================================
--- llvm/tools/llvm-jitlink/llvm-jitlink.cpp
+++ llvm/tools/llvm-jitlink/llvm-jitlink.cpp
@@ -231,7 +231,8 @@
static bool UseTestResultOverride = false;
static int64_t TestResultOverride = 0;
-extern "C" void llvm_jitlink_setTestResultOverride(int64_t Value) {
+extern "C" LLVM_ATTRIBUTE_USED void
+llvm_jitlink_setTestResultOverride(int64_t Value) {
TestResultOverride = Value;
UseTestResultOverride = true;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117609.401025.patch
Type: text/x-patch
Size: 538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220118/b27e1d3e/attachment.bin>
More information about the llvm-commits
mailing list