aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/parser.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/parser.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/parser.rs')
-rw-r--r--src/comp/front/parser.rs2
1 files changed, 2 insertions, 0 deletions
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;