@@ -96,6 +96,7 @@ JL_DLLEXPORT void jl_init_options(void)
9696 0 , // task_metrics
9797 25 , // timeout_for_safepoint_straggler_s
9898 0 , // serialize_machine_code_only
99+ 0 , // drop_edges
99100 };
100101 jl_options_initialized = 1 ;
101102}
@@ -247,6 +248,7 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
247248 opt_inline ,
248249 opt_polly ,
249250 opt_serialize_machine_code_only ,
251+ opt_drop_edges ,
250252 opt_timeout_for_safepoint_straggler ,
251253 opt_trace_compile ,
252254 opt_trace_compile_timing ,
@@ -328,6 +330,7 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
328330 { "inline" , required_argument , 0 , opt_inline },
329331 { "polly" , required_argument , 0 , opt_polly },
330332 { "serialize-machine-code-only" , no_argument , 0 , opt_serialize_machine_code_only },
333+ { "drop-edges" , no_argument , 0 , opt_drop_edges },
331334 { "timeout-for-safepoint-straggler" , required_argument , 0 , opt_timeout_for_safepoint_straggler },
332335 { "trace-compile" , required_argument , 0 , opt_trace_compile },
333336 { "trace-compile-timing" , no_argument , 0 , opt_trace_compile_timing },
@@ -899,6 +902,9 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
899902 case opt_serialize_machine_code_only :
900903 jl_options .serialize_machine_code_only = 1 ;
901904 break ;
905+ case opt_drop_edges :
906+ jl_options .drop_edges = 1 ;
907+ break ;
902908 case opt_task_metrics :
903909 if (!strcmp (optarg , "no" ))
904910 jl_options .task_metrics = JL_OPTIONS_TASK_METRICS_OFF ;
0 commit comments