rustc: Use "rust" GC in Rust functions
This commit is contained in:
parent
f17edf9829
commit
51af43f192
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user