[llvm] Added clarifying comment to 'LLVMLinkInMCJIT' and 'LLVMLinkInInterpreter' (PR #92467)
via llvm-commits
llvm-commits at lists.llvm.org
Mon May 20 03:38:50 PDT 2024
https://github.com/Minding000 updated https://github.com/llvm/llvm-project/pull/92467
>From 8dd1d7fc70f04acfa624055ce8758dc1eb9ae1e8 Mon Sep 17 00:00:00 2001
From: Paul Ohlhauser <bendix.ohlhauser at gmail.com>
Date: Fri, 17 May 2024 00:12:13 +0200
Subject: [PATCH 1/2] Added comments.
---
llvm/include/llvm-c/ExecutionEngine.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/llvm/include/llvm-c/ExecutionEngine.h b/llvm/include/llvm-c/ExecutionEngine.h
index c5fc9bdb4d07f..99f6669019d95 100644
--- a/llvm/include/llvm-c/ExecutionEngine.h
+++ b/llvm/include/llvm-c/ExecutionEngine.h
@@ -33,7 +33,15 @@ LLVM_C_EXTERN_C_BEGIN
* @{
*/
+/**
+ * Empty function used to force the linker to link MCJIT.
+ * Calling this function on a pre-build library has no effect.
+ */
void LLVMLinkInMCJIT(void);
+/**
+ * Empty function used to force the linker to link the LLVM interpreter.
+ * Calling this function on a pre-build library has no effect.
+ */
void LLVMLinkInInterpreter(void);
typedef struct LLVMOpaqueGenericValue *LLVMGenericValueRef;
>From 36f3f9024e85437c85ed4d65f55df7288d89c450 Mon Sep 17 00:00:00 2001
From: Paul Ohlhauser <bendix.ohlhauser at gmail.com>
Date: Mon, 20 May 2024 12:37:59 +0200
Subject: [PATCH 2/2] Added comments.
---
llvm/include/llvm-c/ExecutionEngine.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/include/llvm-c/ExecutionEngine.h b/llvm/include/llvm-c/ExecutionEngine.h
index 99f6669019d95..8245362e4a675 100644
--- a/llvm/include/llvm-c/ExecutionEngine.h
+++ b/llvm/include/llvm-c/ExecutionEngine.h
@@ -35,12 +35,12 @@ LLVM_C_EXTERN_C_BEGIN
/**
* Empty function used to force the linker to link MCJIT.
- * Calling this function on a pre-build library has no effect.
+ * Calling this function on a pre-built library has no effect.
*/
void LLVMLinkInMCJIT(void);
/**
* Empty function used to force the linker to link the LLVM interpreter.
- * Calling this function on a pre-build library has no effect.
+ * Calling this function on a pre-built library has no effect.
*/
void LLVMLinkInInterpreter(void);
More information about the llvm-commits
mailing list