Skip to content
Permalink
Browse files

Remove rarely used -Zdisable_instrumentation_preinliner flag.

The same effect can be achieved by `-Cllvm-args=-disable-preinline`.
  • Loading branch information
michaelwoerister committed Dec 18, 2019
1 parent 963f20d commit 1ca145c3b5b7bc8907ff6f176df2b5687a8ea85f
Showing with 1 addition and 5 deletions.
  1. +1 −3 src/librustc_codegen_llvm/llvm_util.rs
  2. +0 −2 src/librustc_session/options.rs
@@ -80,9 +80,7 @@ unsafe fn configure_llvm(sess: &Session) {
add("rustc", true); // fake program name
if sess.time_llvm_passes() { add("-time-passes", false); }
if sess.print_llvm_passes() { add("-debug-pass=Structure", false); }
if sess.opts.debugging_opts.disable_instrumentation_preinliner {
add("-disable-preinline", false);
}

if sess.opts.debugging_opts.generate_arange_section {
add("-generate-arange-section", false);
}
@@ -866,8 +866,6 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
"extra arguments to prepend to the linker invocation (space separated)"),
profile: bool = (false, parse_bool, [TRACKED],
"insert profiling code"),
disable_instrumentation_preinliner: bool = (false, parse_bool, [TRACKED],
"Disable the instrumentation pre-inliner, useful for profiling / PGO."),
relro_level: Option<RelroLevel> = (None, parse_relro_level, [TRACKED],
"choose which RELRO level to use"),
nll_facts: bool = (false, parse_bool, [UNTRACKED],

0 comments on commit 1ca145c

Please sign in to comment.
You can’t perform that action at this time.