mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
rustc: Mark functions as "rust" GC
This commit is contained in:
@@ -342,7 +342,9 @@ fn decl_cdecl_fn(llmod: ModuleRef, name: &str, llty: TypeRef) -> ValueRef {
|
||||
}
|
||||
|
||||
fn decl_fastcall_fn(llmod: ModuleRef, name: &str, llty: TypeRef) -> ValueRef {
|
||||
ret decl_fn(llmod, name, lib::llvm::LLVMFastCallConv, llty);
|
||||
let llfn = decl_fn(llmod, name, lib::llvm::LLVMFastCallConv, llty);
|
||||
llvm::LLVMSetGC(llfn, str::buf("rust"));
|
||||
ret llfn;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user