rustc: Add support for calling LLVM intrinsics as native functions
This commit is contained in:
parent
6ecdc04788
commit
81695a19f8
5 changed files with 41 additions and 10 deletions
|
@ -1964,6 +1964,8 @@ impure fn parse_item_native_mod(parser p) -> @ast.item {
|
|||
if (_str.eq(t, "cdecl")) {
|
||||
} else if (_str.eq(t, "rust")) {
|
||||
abi = ast.native_abi_rust;
|
||||
} else if (_str.eq(t, "llvm")) {
|
||||
abi = ast.native_abi_llvm;
|
||||
} else {
|
||||
p.err("unsupported abi: " + t);
|
||||
fail;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue