aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/creader.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-03-28 08:24:11 -0700
committerPatrick Walton <[email protected]>2011-03-28 08:24:58 -0700
commit81695a19f876d6f5d75f18c05b2ae9c40a3221b3 (patch)
treedad8d0fc0026e1d8c99a73c64a5538ccf8db1cd7 /src/comp/front/creader.rs
parentAdd support for break and cont to rustc (diff)
downloadrust-81695a19f876d6f5d75f18c05b2ae9c40a3221b3.tar.xz
rust-81695a19f876d6f5d75f18c05b2ae9c40a3221b3.zip
rustc: Add support for calling LLVM intrinsics as native functions
Diffstat (limited to 'src/comp/front/creader.rs')
-rw-r--r--src/comp/front/creader.rs1
1 files changed, 1 insertions, 0 deletions
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);