1
Fork 0

Use FunctionBuilder::call_mem{cpy,move}

This commit is contained in:
bjorn3 2018-09-26 15:42:07 +02:00
parent 16e936b93f
commit 742a795c78
4 changed files with 26 additions and 16 deletions

View file

@ -11,6 +11,7 @@ impl<F: Fn() -> String> Drop for PrintOnPanic<F> {
pub fn trans_mono_item<'a, 'tcx: 'a>(
tcx: TyCtxt<'a, 'tcx, 'tcx>,
isa: &isa::TargetIsa,
module: &mut Module<impl Backend>,
caches: &mut Caches<'tcx>,
ccx: &mut crate::constant::ConstantCx,
@ -47,7 +48,7 @@ pub fn trans_mono_item<'a, 'tcx: 'a>(
}
});
trans_fn(tcx, module, ccx, caches, inst);
trans_fn(tcx, isa, module, ccx, caches, inst);
}
MonoItem::Static(def_id) => {
crate::constant::codegen_static(ccx, def_id);
@ -60,6 +61,7 @@ pub fn trans_mono_item<'a, 'tcx: 'a>(
fn trans_fn<'a, 'tcx: 'a>(
tcx: TyCtxt<'a, 'tcx, 'tcx>,
isa: &isa::TargetIsa,
module: &mut Module<impl Backend>,
constants: &mut crate::constant::ConstantCx,
caches: &mut Caches<'tcx>,
@ -89,6 +91,7 @@ fn trans_fn<'a, 'tcx: 'a>(
// Step 5. Make FunctionCx
let mut fx = FunctionCx {
tcx,
isa,
module,
instance,
mir,