@@ -246,37 +246,37 @@ pub(crate) fn write_clif_file<'tcx>(
246
246
context : & cranelift_codegen:: Context ,
247
247
mut clif_comments : & CommentWriter ,
248
248
) {
249
- write_ir_file ( tcx, & format ! (
250
- "{}.{}.clif" ,
251
- tcx. symbol_name( instance) . name,
252
- postfix
253
- ) , |file| {
254
- let value_ranges = isa. map ( |isa| {
255
- context
256
- . build_value_labels_ranges ( isa)
257
- . expect ( "value location ranges" )
258
- } ) ;
249
+ write_ir_file (
250
+ tcx,
251
+ & format ! ( "{}.{}.clif" , tcx. symbol_name( instance) . name, postfix) ,
252
+ |file| {
253
+ let value_ranges = isa. map ( |isa| {
254
+ context
255
+ . build_value_labels_ranges ( isa)
256
+ . expect ( "value location ranges" )
257
+ } ) ;
259
258
260
- let mut clif = String :: new ( ) ;
261
- cranelift_codegen:: write:: decorate_function (
262
- & mut clif_comments,
263
- & mut clif,
264
- & context. func ,
265
- & DisplayFunctionAnnotations {
266
- isa : Some ( & * crate :: build_isa ( tcx. sess ) ) ,
267
- value_ranges : value_ranges. as_ref ( ) ,
268
- } ,
269
- )
270
- . unwrap ( ) ;
259
+ let mut clif = String :: new ( ) ;
260
+ cranelift_codegen:: write:: decorate_function (
261
+ & mut clif_comments,
262
+ & mut clif,
263
+ & context. func ,
264
+ & DisplayFunctionAnnotations {
265
+ isa : Some ( & * crate :: build_isa ( tcx. sess ) ) ,
266
+ value_ranges : value_ranges. as_ref ( ) ,
267
+ } ,
268
+ )
269
+ . unwrap ( ) ;
271
270
272
- writeln ! ( file, "test compile" ) ?;
273
- writeln ! ( file, "set is_pic" ) ?;
274
- writeln ! ( file, "set enable_simd" ) ?;
275
- writeln ! ( file, "target {} haswell" , crate :: target_triple( tcx. sess) ) ?;
276
- writeln ! ( file) ?;
277
- file. write_all ( clif. as_bytes ( ) ) ?;
278
- Ok ( ( ) )
279
- } ) ;
271
+ writeln ! ( file, "test compile" ) ?;
272
+ writeln ! ( file, "set is_pic" ) ?;
273
+ writeln ! ( file, "set enable_simd" ) ?;
274
+ writeln ! ( file, "target {} haswell" , crate :: target_triple( tcx. sess) ) ?;
275
+ writeln ! ( file) ?;
276
+ file. write_all ( clif. as_bytes ( ) ) ?;
277
+ Ok ( ( ) )
278
+ } ,
279
+ ) ;
280
280
}
281
281
282
282
impl < M : Module > fmt:: Debug for FunctionCx < ' _ , ' _ , M > {
0 commit comments