Remove obsolete type param field from shape information.
This commit is contained in:
parent
120773b2a7
commit
62e9ae04e2
@ -407,10 +407,6 @@ ctxt<T>::walk_tag0() {
|
||||
// Determine the size and alignment.
|
||||
tinfo.tag_sa = get_size_align(tinfo.info_ptr);
|
||||
|
||||
// Read in a dummy value; this used to be the number of parameters
|
||||
uint16_t number_of_params = get_u16_bump(sp);
|
||||
assert(number_of_params == 0 && "tag has type parameters on it");
|
||||
|
||||
// Call to the implementation.
|
||||
static_cast<T *>(this)->walk_tag1(tinfo);
|
||||
}
|
||||
@ -489,10 +485,6 @@ ctxt<T>::walk_res0() {
|
||||
reinterpret_cast<const rust_fn **>(tables->resources);
|
||||
const rust_fn *dtor = resources[dtor_offset];
|
||||
|
||||
// Read in a dummy value; this used to be the number of parameters
|
||||
uint16_t number_of_params = get_u16_bump(sp);
|
||||
assert(number_of_params == 0 && "resource has type parameters on it");
|
||||
|
||||
uint16_t sp_size = get_u16_bump(sp);
|
||||
const uint8_t *end_sp = sp + sp_size;
|
||||
|
||||
|
@ -250,10 +250,6 @@ fn shape_of(ccx: @crate_ctxt, t: ty::t) -> ~[u8] {
|
||||
}
|
||||
add_u16(s, id as u16);
|
||||
|
||||
// Hack: always encode 0 tps, since the shape glue format
|
||||
// hasn't changed since we started monomorphizing.
|
||||
add_u16(s, 0_u16);
|
||||
|
||||
s
|
||||
}
|
||||
}
|
||||
@ -342,10 +338,6 @@ fn shape_of(ccx: @crate_ctxt, t: ty::t) -> ~[u8] {
|
||||
let ri = @{did: dtor_did, parent_id: some(did), tps: tps};
|
||||
let id = interner::intern(ccx.shape_cx.resources, ri);
|
||||
add_u16(s, id as u16);
|
||||
|
||||
// Hack: always encode 0 tps, since the shape glue format
|
||||
// hasn't changed since we started monomorphizing.
|
||||
add_u16(s, 0_u16);
|
||||
};
|
||||
for ty::class_items_as_mutable_fields(ccx.tcx, did, substs).each |f| {
|
||||
sub += shape_of(ccx, f.mt.ty);
|
||||
|
Loading…
x
Reference in New Issue
Block a user