rustc: Use "rust" GC in Rust functions

This commit is contained in:
Patrick Walton 2011-08-17 18:26:51 -07:00
parent f17edf9829
commit 51af43f192

View File

@ -354,6 +354,7 @@ fn decl_internal_fastcall_fn(llmod: ModuleRef, name: &str, llty: TypeRef) ->
let llfn = decl_fn(llmod, name, lib::llvm::LLVMFastCallConv, llty);
llvm::LLVMSetLinkage(llfn,
lib::llvm::LLVMInternalLinkage as llvm::Linkage);
llvm::LLVMSetGC(llfn, str::buf("rust"));
ret llfn;
}