rustc: Add LLVM typedefs for rust_crate and rust_task for good measure
This commit is contained in:
parent
cf8ad5f56d
commit
2c472c0de8
@ -2298,6 +2298,11 @@ fn trans_exit_task_glue(@crate_ctxt cx) {
|
||||
bcx.build.RetVoid();
|
||||
}
|
||||
|
||||
fn create_typedefs(@crate_ctxt cx) {
|
||||
llvm.LLVMAddTypeName(cx.llmod, _str.buf("rust_crate"), T_crate());
|
||||
llvm.LLVMAddTypeName(cx.llmod, _str.buf("rust_task"), T_task());
|
||||
}
|
||||
|
||||
fn crate_constant(@crate_ctxt cx) -> ValueRef {
|
||||
|
||||
let ValueRef crate_ptr =
|
||||
@ -2459,6 +2464,8 @@ fn trans_crate(session.session sess, @ast.crate crate, str output) {
|
||||
names = namegen(0),
|
||||
path = "_rust");
|
||||
|
||||
create_typedefs(cx);
|
||||
|
||||
collect_items(cx, crate);
|
||||
resolve_tag_types(cx, crate);
|
||||
trans_constants(cx, crate);
|
||||
|
Loading…
x
Reference in New Issue
Block a user