Skip to content

Commit

Permalink
Remove rarely used -Zdisable_instrumentation_preinliner flag.
Browse files Browse the repository at this point in the history
The same effect can be achieved by `-Cllvm-args=-disable-preinline`.
  • Loading branch information
michaelwoerister committed Dec 20, 2019
1 parent 963f20d commit 1ca145c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions src/librustc_codegen_llvm/llvm_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 0 additions & 2 deletions src/librustc_session/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 1ca145c

Please sign in to comment.