From 81695a19f876d6f5d75f18c05b2ae9c40a3221b3 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 28 Mar 2011 08:24:11 -0700 Subject: rustc: Add support for calling LLVM intrinsics as native functions --- src/comp/front/parser.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/comp/front/parser.rs') diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index c8130b0b..4a9f37f0 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -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; -- cgit v1.2.3