Skip to content

Commit d0cb5b2

Browse files
committed
Changed link function visibility to hidden and added comments
1 parent 47d80ec commit d0cb5b2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

llvm/include/llvm-c/ExecutionEngine.h

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

36-
void LLVMLinkInMCJIT(void);
37-
void LLVMLinkInInterpreter(void);
36+
/**
37+
* Empty function used to force the linker to link MCJIT.
38+
* Hidden because it does not apply to the dylib interface.
39+
*/
40+
LLVM_ATTRIBUTE_VISIBILITY_HIDDEN void LLVMLinkInMCJIT(void);
41+
/**
42+
* Empty function used to force the linker to link the LLVM interpreter.
43+
* Hidden because it does not apply to the dylib interface.
44+
*/
45+
LLVM_ATTRIBUTE_VISIBILITY_HIDDEN void LLVMLinkInInterpreter(void);
3846

3947
typedef struct LLVMOpaqueGenericValue *LLVMGenericValueRef;
4048
typedef struct LLVMOpaqueExecutionEngine *LLVMExecutionEngineRef;

0 commit comments

Comments
 (0)