Respect -Z no-verify during LTO

Currently -Z no-verify only controls IR verification prior to
LLVM codegen, while verification is performed unconditionally
both before and after linking with (Thin)LTO.
This commit is contained in:
Nikita Popov 2018-05-30 22:48:20 +02:00
parent ef8cb40c9c
commit 78a16443a3
2 changed files with 12 additions and 7 deletions

View file

@ -232,7 +232,7 @@ pub struct ModuleConfig {
emit_obj: bool,
// Miscellaneous flags. These are mostly copied from command-line
// options.
no_verify: bool,
pub no_verify: bool,
no_prepopulate_passes: bool,
no_builtins: bool,
time_passes: bool,