提交 870435ca 编写于 作者: P Patrick Walton

rustc: Add a "fat tydesc" LLVM type to trans

上级 f969b227
......@@ -417,6 +417,12 @@ fn T_tydesc(type_names tn) -> TypeRef {
ret t;
}
// A "fat tydesc" is a type descriptor plus an array of extra type descriptors
// following it.
fn T_fat_tydesc(type_names tn, uint n_subdescs) -> TypeRef {
ret T_struct(vec(T_tydesc(tn), T_array(T_tydesc(tn), n_subdescs)));
}
fn T_array(TypeRef t, uint n) -> TypeRef {
ret llvm.LLVMArrayType(t, n);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册