Skip to content

Commit 64155a3

Browse files
authored
Added clarifying comment to 'LLVMLinkInMCJIT' and 'LLVMLinkInInterpreter' (#92467)
Clarify that these functions are no-ops when linking to LLVM as a shared object.
1 parent 15482c8 commit 64155a3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

llvm/include/llvm-c/ExecutionEngine.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@ LLVM_C_EXTERN_C_BEGIN
3333
* @{
3434
*/
3535

36+
/**
37+
* Empty function used to force the linker to link MCJIT.
38+
* Has no effect when called on a pre-built library (dylib interface).
39+
*/
3640
void LLVMLinkInMCJIT(void);
41+
/**
42+
* Empty function used to force the linker to link the LLVM interpreter.
43+
* Has no effect when called on a pre-built library (dylib interface).
44+
*/
3745
void LLVMLinkInInterpreter(void);
3846

3947
typedef struct LLVMOpaqueGenericValue *LLVMGenericValueRef;

0 commit comments

Comments
 (0)