diff options
author | hexcoder- <heiko@hexco.de> | 2021-10-12 23:40:05 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2021-10-12 23:40:05 +0200 |
commit | 379c5806580dd58824df0f4fb7d215841d1bd459 (patch) | |
tree | 69f0eeb1f4f89607fd6a56233b9b9bf0430e9ca6 /src | |
parent | 6e08e809074763a9c4b35b65805e628689a2d562 (diff) | |
download | afl++-379c5806580dd58824df0f4fb7d215841d1bd459.tar.gz |
converted split-switches-pass to new pass manager
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-cc.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c index a51632a2..e8584d50 100644 --- a/src/afl-cc.c +++ b/src/afl-cc.c @@ -460,11 +460,9 @@ 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++] = "-fexperimental-new-pass-manager"; cc_params[cc_par_cnt++] = - alloc_printf("%s/split-switches-pass.so", obj_path); + alloc_printf("-fpass-plugin=%s/split-switches-pass.so", obj_path); } @@ -531,11 +529,9 @@ static void edit_params(u32 argc, char **argv, char **envp) { alloc_printf("%s/cmplog-switches-pass.so", obj_path); // reuse split switches from laf - 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-switches-pass.so", obj_path); + alloc_printf("-fpass-plugin=%s/split-switches-pass.so", obj_path); } |