Skip to content

Commit 870435c

Browse files
committed
rustc: Add a "fat tydesc" LLVM type to trans
1 parent f969b22 commit 870435c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/comp/middle/trans.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,12 @@ fn T_tydesc(type_names tn) -> TypeRef {
417417
ret t;
418418
}
419419

420+
// A "fat tydesc" is a type descriptor plus an array of extra type descriptors
421+
// following it.
422+
fn T_fat_tydesc(type_names tn, uint n_subdescs) -> TypeRef {
423+
ret T_struct(vec(T_tydesc(tn), T_array(T_tydesc(tn), n_subdescs)));
424+
}
425+
420426
fn T_array(TypeRef t, uint n) -> TypeRef {
421427
ret llvm.LLVMArrayType(t, n);
422428
}

0 commit comments

Comments
 (0)