Get rid of passing target_info a bunch

This commit is contained in:
Ayaz Hafiz 2023-06-16 21:38:30 -05:00
parent 8495f3b085
commit bc41db2a34
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
18 changed files with 154 additions and 287 deletions

View file

@ -710,7 +710,7 @@ fn eq_list<'a>(
let size_expr = Expr::Literal(Literal::Int(
(layout_interner
.get_repr(elem_layout)
.stack_size(layout_interner, root.target_info) as i128)
.stack_size(layout_interner) as i128)
.to_ne_bytes(),
));
let size_stmt = |next| Stmt::Let(size, size_expr, layout_isize, next);

View file

@ -1687,8 +1687,7 @@ fn refcount_union_rec<'a>(
};
let rc_structure_stmt = {
let alignment = LayoutRepr::Union(union_layout)
.allocation_alignment_bytes(layout_interner, root.target_info);
let alignment = LayoutRepr::Union(union_layout).allocation_alignment_bytes(layout_interner);
let ret_stmt = rc_return_stmt(root, ident_ids, ctx);
modify_refcount(