1
Fork 0

rustc: Add support for calling LLVM intrinsics as native functions

This commit is contained in:
Patrick Walton 2011-03-28 08:24:11 -07:00
parent 6ecdc04788
commit 81695a19f8
5 changed files with 41 additions and 10 deletions

View file

@ -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;