aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-05-03 18:03:59 -0700
committerPatrick Walton <[email protected]>2011-05-03 18:03:59 -0700
commitac8eb202247b61412143c621a1ccdcb167d6f313 (patch)
treefb3acfd59670ebb27c6e35ce3d6ab857be8f9a0a /src/comp/front
parentRevert "Rename the "llvm" API to "llvm-intrinsic"" due to tinderbox bustage (diff)
downloadrust-ac8eb202247b61412143c621a1ccdcb167d6f313.tar.xz
rust-ac8eb202247b61412143c621a1ccdcb167d6f313.zip
rustc: Stub support for Rust intrinsics
Diffstat (limited to 'src/comp/front')
-rw-r--r--src/comp/front/ast.rs1
-rw-r--r--src/comp/front/parser.rs2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index 82b6d813..1f123f74 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -380,6 +380,7 @@ tag native_abi {
native_abi_rust;
native_abi_cdecl;
native_abi_llvm;
+ native_abi_rust_intrinsic;
}
type native_mod = rec(str native_name,
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index b886e8ae..e7a86d6e 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -2015,6 +2015,8 @@ fn parse_item_native_mod(parser p) -> @ast.item {
abi = ast.native_abi_rust;
} else if (_str.eq(t, "llvm")) {
abi = ast.native_abi_llvm;
+ } else if (_str.eq(t, "rust-intrinsic")) {
+ abi = ast.native_abi_rust_intrinsic;
} else {
p.err("unsupported abi: " + t);
fail;