[llvm] 64155a3 - Added clarifying comment to 'LLVMLinkInMCJIT' and 'LLVMLinkInInterpreter' (#92467)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 17 17:09:10 PDT 2025


Author: Minding
Date: 2025-06-18T10:09:07+10:00
New Revision: 64155a32297f4884875783664ff13bec9ab376f5

URL: https://github.com/llvm/llvm-project/commit/64155a32297f4884875783664ff13bec9ab376f5
DIFF: https://github.com/llvm/llvm-project/commit/64155a32297f4884875783664ff13bec9ab376f5.diff

LOG: Added clarifying comment to 'LLVMLinkInMCJIT' and 'LLVMLinkInInterpreter' (#92467)

Clarify that these functions are no-ops when linking to LLVM as a shared object.

Added: 
    

Modified: 
    llvm/include/llvm-c/ExecutionEngine.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm-c/ExecutionEngine.h b/llvm/include/llvm-c/ExecutionEngine.h
index c5fc9bdb4d07f..2062cbf470d8b 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.
+ * Has no effect when called on a pre-built library (dylib interface).
+ */
 void LLVMLinkInMCJIT(void);
+/**
+ * Empty function used to force the linker to link the LLVM interpreter.
+ * Has no effect when called on a pre-built library (dylib interface).
+ */
 void LLVMLinkInInterpreter(void);
 
 typedef struct LLVMOpaqueGenericValue *LLVMGenericValueRef;


        


More information about the llvm-commits mailing list