@@ -233,7 +233,7 @@ pub(crate) fn write_ir_file(
233233pub ( crate ) fn write_clif_file < ' tcx > (
234234 tcx : TyCtxt < ' tcx > ,
235235 postfix : & str ,
236- isa : Option < & dyn cranelift_codegen:: isa:: TargetIsa > ,
236+ isa : & dyn cranelift_codegen:: isa:: TargetIsa ,
237237 instance : Instance < ' tcx > ,
238238 context : & cranelift_codegen:: Context ,
239239 mut clif_comments : & CommentWriter ,
@@ -242,22 +242,19 @@ pub(crate) fn write_clif_file<'tcx>(
242242 tcx,
243243 || format ! ( "{}.{}.clif" , tcx. symbol_name( instance) . name, postfix) ,
244244 |file| {
245- let value_ranges = isa
246- . map ( |isa| context. build_value_labels_ranges ( isa) . expect ( "value location ranges" ) ) ;
247-
248245 let mut clif = String :: new ( ) ;
249246 cranelift_codegen:: write:: decorate_function (
250247 & mut clif_comments,
251248 & mut clif,
252249 & context. func ,
253- & DisplayFunctionAnnotations { isa, value_ranges : value_ranges . as_ref ( ) } ,
250+ & DisplayFunctionAnnotations { isa : Some ( isa ) , value_ranges : None } ,
254251 )
255252 . unwrap ( ) ;
256253
257254 writeln ! ( file, "test compile" ) ?;
258255 writeln ! ( file, "set is_pic" ) ?;
259256 writeln ! ( file, "set enable_simd" ) ?;
260- writeln ! ( file, "target {} haswell " , crate :: target_triple( tcx. sess) ) ?;
257+ writeln ! ( file, "target {} nehalem " , crate :: target_triple( tcx. sess) ) ?;
261258 writeln ! ( file) ?;
262259 file. write_all ( clif. as_bytes ( ) ) ?;
263260 Ok ( ( ) )
0 commit comments