From 2d9ccf3ae56ce8d403b66a3cb0a560161eb9cb03 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 5 May 2011 14:34:22 -0700 Subject: rustc: Add Rust intrinsic support to the crate metadata reader and writer --- src/comp/front/creader.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/comp/front') 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); -- cgit v1.2.3