about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2019-12-18 14:28:06 +0100
committerMichael Woerister <michaelwoerister@posteo>2019-12-20 17:08:46 +0100
commit1ca145c3b5b7bc8907ff6f176df2b5687a8ea85f (patch)
tree90a6062123338752b1618113c90adc9eedb23056
parent963f20db1a4276093545bd1d79969ee1d6b2c959 (diff)
downloadrust-1ca145c3b5b7bc8907ff6f176df2b5687a8ea85f.tar.gz
rust-1ca145c3b5b7bc8907ff6f176df2b5687a8ea85f.zip
Remove rarely used -Zdisable_instrumentation_preinliner flag.
The same effect can be achieved by `-Cllvm-args=-disable-preinline`.
-rw-r--r--src/librustc_codegen_llvm/llvm_util.rs4
-rw-r--r--src/librustc_session/options.rs2
2 files changed, 1 insertions, 5 deletions
diff --git a/src/librustc_codegen_llvm/llvm_util.rs b/src/librustc_codegen_llvm/llvm_util.rs
index 6f9bb6d1ac5..3145b0df63b 100644
--- a/src/librustc_codegen_llvm/llvm_util.rs
+++ b/src/librustc_codegen_llvm/llvm_util.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);
         }
diff --git a/src/librustc_session/options.rs b/src/librustc_session/options.rs
index 9ddc9c0d602..2f2d03fc596 100644
--- a/src/librustc_session/options.rs
+++ b/src/librustc_session/options.rs
@@ -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],