| ... | @@ -988,13 +988,6 @@ gcc -fPIC -g -Werror -pedantic -shared -Wl,-soname,libsoundio.so.1 -o libsoundi | ... | @@ -988,13 +988,6 @@ gcc -fPIC -g -Werror -pedantic -shared -Wl,-soname,libsoundio.so.1 -o libsoundi |
| 988 | | 988 | |
| 989 | */ | 989 | */ |
| 990 | void code_gen_link(CodeGen *g, const char *out_file) { | 990 | void code_gen_link(CodeGen *g, const char *out_file) { |
| 991 | LLVMPassRegistryRef registry = LLVMGetGlobalPassRegistry(); | | |
| 992 | LLVMInitializeCore(registry); | | |
| 993 | LLVMInitializeCodeGen(registry); | | |
| 994 | LLVMZigInitializeLoopStrengthReducePass(registry); | | |
| 995 | LLVMZigInitializeLowerIntrinsicsPass(registry); | | |
| 996 | LLVMZigInitializeUnreachableBlockElimPass(registry); | | |
| 997 | | | |
| 998 | if (!out_file) { | 991 | if (!out_file) { |
| 999 | out_file = buf_ptr(g->out_name); | 992 | out_file = buf_ptr(g->out_name); |
| 1000 | } | 993 | } |