Re-use cranelift_codegen::ir::Function for every function

Fixes #844
This commit is contained in:
bjorn3 2020-01-04 17:58:38 +01:00
parent c5a7fca527
commit 1bb848d4ac
4 changed files with 17 additions and 29 deletions

View file

@ -269,7 +269,7 @@ pub struct FunctionCx<'clif, 'tcx, B: Backend + 'static> {
pub clif_comments: crate::pretty_clif::CommentWriter,
pub constants_cx: &'clif mut crate::constant::ConstantCx,
pub caches: &'clif mut Caches<'tcx>,
pub vtables: &'clif mut HashMap<(Ty<'tcx>, Option<ty::PolyExistentialTraitRef<'tcx>>), DataId>,
pub source_info_set: indexmap::IndexSet<SourceInfo>,
}