adapt compiler driver to laod new pass manager passes
MODIFY
src/afl-cc.c
src/afl-cc.c
@@ -500,11 +500,12 @@ static void edit_params(u32 argc, char **argv, char **envp) {
} else {
- cc_params[cc_par_cnt++] = "-Xclang";
- cc_params[cc_par_cnt++] = "-load";
- cc_params[cc_par_cnt++] = "-Xclang";
+// cc_params[cc_par_cnt++] = "-Xclang";
+// cc_params[cc_par_cnt++] = "-load";
+// cc_params[cc_par_cnt++] = "-Xclang";
+ cc_params[cc_par_cnt++] = "-fexperimental-new-pass-manager";
cc_params[cc_par_cnt++] =
- alloc_printf("%s/split-compares-pass.so", obj_path);
+ alloc_printf("-fpass-plugin=%s/split-compares-pass.so", obj_path);
}
@@ -548,7 +549,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
#if LLVM_MAJOR >= 13
// fuck you llvm 13
- cc_params[cc_par_cnt++] = "-fno-experimental-new-pass-manager";
+// cc_params[cc_par_cnt++] = "-fno-experimental-new-pass-manager";
#endif
if (lto_mode && !have_c) {

adapt compiler driver to laod new pass manager passes