Add procs for wasm32

This commit is contained in:
gingerBill
2021-10-31 19:00:01 +00:00
parent fca7142a3c
commit 5f51337a01
4 changed files with 21 additions and 0 deletions

View File

@@ -388,6 +388,12 @@ void lb_run_remove_unused_function_pass(LLVMModuleRef mod) {
name == "memcpy") {
continue;
}
if (is_arch_wasm()) {
if (name == "__ashlti3") {
LLVMSetLinkage(curr_func, LLVMExternalLinkage);
continue;
}
}
LLVMLinkage linkage = LLVMGetLinkage(curr_func);