Skip to content

Commit

Permalink
Change visibility of func.
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Nov 13, 2023
1 parent 69154c2 commit 9dc4347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/llvm_codegen_function.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ void llvm_emit_body(GenContext *c, LLVMValueRef function, FunctionPrototype *pro
LLVMTypeRef args[7] = { c->ptr_type };
LLVMTypeRef func_type = LLVMFunctionType(LLVMVoidTypeInContext(c->context), args, 1, false);
LLVMValueRef func = c->debug.stack_init_fn = LLVMAddFunction(c->module, ".stacktfefefwrace_init", func_type);
llvm_set_weak(c, func);
LLVMSetVisibility(func, LLVMHiddenVisibility);

LLVMBuilderRef builder = llvm_create_builder(c);
LLVMBasicBlockRef entry = LLVMAppendBasicBlockInContext(c->context, func, "entry");
Expand Down

0 comments on commit 9dc4347

Please sign in to comment.