File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ fn codegen_fn<'tcx>(
119
119
120
120
crate :: pretty_clif:: write_clif_file (
121
121
tcx,
122
+ symbol_name. name ,
122
123
"unopt" ,
123
124
module. isa ( ) ,
124
- instance,
125
125
& func,
126
126
& clif_comments,
127
127
) ;
@@ -201,17 +201,17 @@ fn compile_fn<'tcx>(
201
201
// Write optimized function to file for debugging
202
202
crate :: pretty_clif:: write_clif_file (
203
203
tcx,
204
+ codegened_func. symbol_name . name ,
204
205
"opt" ,
205
206
module. isa ( ) ,
206
- codegened_func. instance ,
207
207
& context. func ,
208
208
& clif_comments,
209
209
) ;
210
210
211
211
if let Some ( disasm) = & context. mach_compile_result . as_ref ( ) . unwrap ( ) . disasm {
212
212
crate :: pretty_clif:: write_ir_file (
213
213
tcx,
214
- || format ! ( "{}.vcode" , tcx . symbol_name ( codegened_func. instance ) . name) ,
214
+ || format ! ( "{}.vcode" , codegened_func. symbol_name . name) ,
215
215
|file| file. write_all ( disasm. as_bytes ( ) ) ,
216
216
)
217
217
}
Original file line number Diff line number Diff line change @@ -231,16 +231,16 @@ pub(crate) fn write_ir_file(
231
231
232
232
pub ( crate ) fn write_clif_file < ' tcx > (
233
233
tcx : TyCtxt < ' tcx > ,
234
+ symbol_name : & str ,
234
235
postfix : & str ,
235
236
isa : & dyn cranelift_codegen:: isa:: TargetIsa ,
236
- instance : Instance < ' tcx > ,
237
237
func : & cranelift_codegen:: ir:: Function ,
238
238
mut clif_comments : & CommentWriter ,
239
239
) {
240
240
// FIXME work around filename too long errors
241
241
write_ir_file (
242
242
tcx,
243
- || format ! ( "{}.{}.clif" , tcx . symbol_name( instance ) . name , postfix) ,
243
+ || format ! ( "{}.{}.clif" , symbol_name, postfix) ,
244
244
|file| {
245
245
let mut clif = String :: new ( ) ;
246
246
cranelift_codegen:: write:: decorate_function ( & mut clif_comments, & mut clif, func)
You can’t perform that action at this time.
0 commit comments