@@ -232,7 +232,7 @@ pub struct ModuleConfig {
232
232
emit_obj : bool ,
233
233
// Miscellaneous flags. These are mostly copied from command-line
234
234
// options.
235
- pub no_verify : bool ,
235
+ pub verify_llvm_ir : bool ,
236
236
no_prepopulate_passes : bool ,
237
237
no_builtins : bool ,
238
238
time_passes : bool ,
@@ -271,7 +271,7 @@ impl ModuleConfig {
271
271
embed_bitcode_marker : false ,
272
272
no_integrated_as : false ,
273
273
274
- no_verify : false ,
274
+ verify_llvm_ir : false ,
275
275
no_prepopulate_passes : false ,
276
276
no_builtins : false ,
277
277
time_passes : false ,
@@ -283,7 +283,7 @@ impl ModuleConfig {
283
283
}
284
284
285
285
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 ( ) ;
287
287
self . no_prepopulate_passes = sess. opts . cg . no_prepopulate_passes ;
288
288
self . no_builtins = no_builtins || sess. target . target . options . no_builtins ;
289
289
self . time_passes = sess. time_passes ( ) ;
@@ -542,7 +542,7 @@ unsafe fn optimize(cgcx: &CodegenContext,
542
542
true
543
543
} ;
544
544
545
- if ! config. no_verify { assert ! ( addpass( "verify" ) ) ; }
545
+ if config. verify_llvm_ir { assert ! ( addpass( "verify" ) ) ; }
546
546
if !config. no_prepopulate_passes {
547
547
llvm:: LLVMRustAddAnalysisPasses ( tm, fpm, llmod) ;
548
548
llvm:: LLVMRustAddAnalysisPasses ( tm, mpm, llmod) ;
0 commit comments