aboutsummaryrefslogtreecommitdiff
path: root/src/comp
diff options
context:
space:
mode:
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/front/creader.rs7
-rw-r--r--src/comp/middle/metadata.rs3
2 files changed, 7 insertions, 3 deletions
diff --git a/src/comp/front/creader.rs b/src/comp/front/creader.rs
index cdbafe5a..a9660bf5 100644
--- a/src/comp/front/creader.rs
+++ b/src/comp/front/creader.rs
@@ -141,9 +141,10 @@ fn parse_ty(@pstate st, str_def sd) -> ty.t {
case ('N') {
auto abi;
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;}
+ case ('r') { abi = ast.native_abi_rust; }
+ case ('i') { abi = ast.native_abi_rust_intrinsic; }
+ case ('c') { abi = ast.native_abi_cdecl; }
+ case ('l') { abi = ast.native_abi_llvm; }
}
auto func = parse_ty_fn(st, sd);
ret ty.mk_native_fn(st.tcx,abi,func._0,func._1);
diff --git a/src/comp/middle/metadata.rs b/src/comp/middle/metadata.rs
index 5f222cd4..ce37822d 100644
--- a/src/comp/middle/metadata.rs
+++ b/src/comp/middle/metadata.rs
@@ -190,6 +190,9 @@ mod Encode {
w.write_char('N');
alt (abi) {
case (ast.native_abi_rust) { w.write_char('r'); }
+ case (ast.native_abi_rust_intrinsic) {
+ w.write_char('i');
+ }
case (ast.native_abi_cdecl) { w.write_char('c'); }
case (ast.native_abi_llvm) { w.write_char('l'); }
}