fix switch to new pass manager

This commit is contained in:
hexcoder-
2021-11-23 21:07:11 +01:00
parent 90d7931af6
commit 1fbb7cb2fa

View File

@ -462,7 +462,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
} else {
#if LLVM_VERSION_MAJOR >= 11 /* use new pass manager */
#if LLVM_MAJOR >= 11 /* use new pass manager */
cc_params[cc_par_cnt++] = "-fexperimental-new-pass-manager";
cc_params[cc_par_cnt++] =
alloc_printf("-fpass-plugin=%s/split-switches-pass.so", obj_path);
@ -488,7 +488,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
} else {
#if LLVM_VERSION_MAJOR >= 11 /* use new pass manager */
#if LLVM_MAJOR >= 11 /* use new pass manager */
cc_params[cc_par_cnt++] = "-fexperimental-new-pass-manager";
cc_params[cc_par_cnt++] = alloc_printf(
"-fpass-plugin=%s/compare-transform-pass.so", obj_path);