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/creader.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/comp/front/creader.rs') diff --git a/src/comp/front/creader.rs b/src/comp/front/creader.rs index 6a864053..f1003cb6 100644 --- a/src/comp/front/creader.rs +++ b/src/comp/front/creader.rs @@ -162,6 +162,7 @@ impure fn parse_sty(@pstate st, str_def sd) -> ty.sty { alt (next(st) as char) { case ('r') {abi = ast.native_abi_rust;} case ('c') {abi = ast.native_abi_cdecl;} + case ('l') {abi = ast.native_abi_llvm;} } auto func = parse_ty_fn(st, sd); ret ty.ty_native_fn(abi,func._0,func._1); -- cgit v1.2.3