Invert -Z generate-arange-section.

Because it uses `parse_bool` and defaults to true, it is actually
impossible to set it to false. Inverting its sense to `-Z
no-generate-arange-section` makes it usable.
This commit is contained in:
Nicholas Nethercote 2020-03-24 12:01:45 +11:00
parent f19ab9ad9d
commit fa432597ea
2 changed files with 3 additions and 4 deletions

View file

@ -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 {