about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-03-25 14:46:51 +0000
committerbors <bors@rust-lang.org>2020-03-25 14:46:51 +0000
commit3c1d9adb3cb3aad4233075fa296fc3c70b42cdb8 (patch)
tree2007caa73a57f6ff6d9ff7f459a88efb75d29e4b /src/librustc_codegen_llvm
parentcdb50c6f2507319f29104a25765bfb79ad53395c (diff)
parent46c8a2c26eee8148e47237e90efde558d1374580 (diff)
Auto merge of #70297 - nnethercote:clean-up-debugging-options, r=michaelwoerister
Clean up debugging options

I found various sub-optimal things when I was looking at option handling.
Diffstat (limited to 'src/librustc_codegen_llvm')
-rw-r--r--src/librustc_codegen_llvm/llvm_util.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_codegen_llvm/llvm_util.rs b/src/librustc_codegen_llvm/llvm_util.rs
index 5e924c9af84..2ccc861ddbb 100644
--- a/src/librustc_codegen_llvm/llvm_util.rs
+++ b/src/librustc_codegen_llvm/llvm_util.rs
@@ -80,8 +80,7 @@ unsafe fn configure_llvm(sess: &Session) {
         if sess.print_llvm_passes() {
             add("-debug-pass=Structure", false);
         }
-
-        if sess.opts.debugging_opts.generate_arange_section {
+        if !sess.opts.debugging_opts.no_generate_arange_section {
             add("-generate-arange-section", false);
         }
         if get_major_version() >= 8 {