@@ -232,7 +232,7 @@ pub struct ModuleConfig {
232232 emit_obj : bool ,
233233 // Miscellaneous flags. These are mostly copied from command-line
234234 // options.
235- pub no_verify : bool ,
235+ pub verify_llvm_ir : bool ,
236236 no_prepopulate_passes : bool ,
237237 no_builtins : bool ,
238238 time_passes : bool ,
@@ -271,7 +271,7 @@ impl ModuleConfig {
271271 embed_bitcode_marker : false ,
272272 no_integrated_as : false ,
273273
274- no_verify : false ,
274+ verify_llvm_ir : false ,
275275 no_prepopulate_passes : false ,
276276 no_builtins : false ,
277277 time_passes : false ,
@@ -283,7 +283,7 @@ impl ModuleConfig {
283283 }
284284
285285 fn set_flags ( & mut self , sess : & Session , no_builtins : bool ) {
286- self . no_verify = sess. no_verify ( ) ;
286+ self . verify_llvm_ir = sess. verify_llvm_ir ( ) ;
287287 self . no_prepopulate_passes = sess. opts . cg . no_prepopulate_passes ;
288288 self . no_builtins = no_builtins || sess. target . target . options . no_builtins ;
289289 self . time_passes = sess. time_passes ( ) ;
@@ -542,7 +542,7 @@ unsafe fn optimize(cgcx: &CodegenContext,
542542 true
543543 } ;
544544
545- if ! config. no_verify { assert ! ( addpass( "verify" ) ) ; }
545+ if config. verify_llvm_ir { assert ! ( addpass( "verify" ) ) ; }
546546 if !config. no_prepopulate_passes {
547547 llvm:: LLVMRustAddAnalysisPasses ( tm, fpm, llmod) ;
548548 llvm:: LLVMRustAddAnalysisPasses ( tm, mpm, llmod) ;
0 commit comments