Print pass mode for locals in clif

This commit is contained in:
bjorn3 2018-11-02 19:50:14 +01:00
parent 3b9f98e8df
commit 58f076cf38

View File

@ -334,6 +334,12 @@ enum ArgKind {
fx.top_nop = Some(fx.bcx.ins().nop());
fx.add_global_comment(format!("ssa {:?}", ssa_analyzed));
for local in fx.mir.args_iter() {
let arg_ty = fx.monomorphize(&fx.mir.local_decls[local].ty);
let pass_mode = get_pass_mode(fx.tcx, fx.self_sig().abi, arg_ty, false);
fx.add_global_comment(format!("pass {:?}: {:?} {:?}", local, arg_ty, pass_mode));
}
match output_pass_mode {
PassMode::NoPass => {
let null = fx.bcx.ins().iconst(fx.module.pointer_type(), 0);